HumanBrainProject / openMINDS

openMINDS comprises a set of metadata models for research products in the field of neuroscience.
MIT License
40 stars 13 forks source link

Sort required properties when generating schemas #41

Open ehennestad opened 1 year ago

ehennestad commented 1 year ago

The use of set in the following piece of code results in the list of required properties being unsorted.

https://github.com/HumanBrainProject/openMINDS_generator/blob/3e701662d251a51af77e3efa804510b4728d7d34/generator/generate_json_schema.py#L112-L115

This cause the schemas to look different for each commit and it results in a lot of changed files for each commit. This really clutters the commit history. and should be fixed by sorting the required properties