smart-data-models / dataModel.Environment

Environment Data Model
Other
12 stars 15 forks source link

Non usable JSON schema in validators #23

Open EliottPaillard opened 2 months ago

EliottPaillard commented 2 months ago

Hello, I wanted to use a JSON schema to test a model with a JSON validator but the schemas look outdated. I think something goes wrong because of the "$schema" value. I believe "http://json-schema.org/schema#" is deprecated now and should be replaced by "https://json-schema.org/draft/2020-12/schema".

The replacement should be made in the main schema but also in each schema in it called by the "$ref" tag.

albertoabellagarcia commented 3 weeks ago

thanks for the input. As mentioned in other issue you opened, both links point to the same file so it is hard to understand how this prevent to use a validator (please provide us with further information)

Besides this, we do not understand what do you mean in the sentence "The replacement should be made in the main schema but also in each schema in it called by the "$ref" tag." Initially there is only one reference to the meta-schema in the attribute "$schema"

Thanks