Open davaya opened 1 year ago
When it comes to python code conventions, we try to follow the PEP8 guideline. Conversion tools between snake case and camel case can be found here. Feel free to adapt them if you think they lack in functionality (so far, I only ran into problems with some checksum algorithm identifiers).
The SPDX model files have properties with camelCase names:
but the tool class files have snake_case property names:
and upper case enum values instead of the camelCase model-defined vocabulary items:
This causes multiple errors when trying to initialize the class types from example messages. Can the tool classes be regenerated from the model files using the property names and enum values from the model? The PascalCase type names (e.g. ExternalIdentifier) do appear to be correct.
PR #708 is a first step towards auto-generation of classes from the model.