jschema-to-python icon indicating copy to clipboard operation
jschema-to-python copied to clipboard

Generate source code for a set of Python classes from a JSON schema.

Results 10 jschema-to-python issues
Sort by recently updated
recently updated
newest added

If the package is installed and frozen using pyinstaller I get the following error. This can also be reproduced if you run: ``` pip install https://github.com/microsoft/jschema-to-python/archive/refs/heads/main.zip ``` ``` File "/private/var/folders/gh/xb7d1gmd365bzd73jn3_jc080000gq/T/pip-build-env-jjvoj2_g/normal/lib/python3.10/site-packages/pbr/core.py",...

The deepcopy of the instance `__dict__` during serialization at the following line seems unnecessary: https://github.com/microsoft/jschema-to-python/blob/c4fb418bd537fd78c52f1a193219fff6bf8af980/jschema_to_python/to_json.py#L26 I have benchmarked this and it is also a serious bottleneck when serializing large objects....

When deciding whether to quote an enum value in an initializer, look at the first element of the enum. (It's true that enum values can be of mixed types, but...

bug

Example in SARIF, the `version` property has only one enumerated value, `"2.1.0"`.

enhancement