Does library supports validating schema itself #349
Replies: 2 comments
-
Of course this library can validate a schema with the meta-schema. Which is even included in the library. However, this is not done automatically. IIRC, the json-schema-meta-schema is quite permissive in some points. So don't be surprised if additional keywords are allowed, for example. |
Beta Was this translation helpful? Give feedback.
-
I did make an attempt to validate a schema with the draft-2020-12 meta-schema and it failed to load (the meta-schema was not parsed by this project). I tried to debug it and got mired down. I did push some attempts at improvements here in the process: https://github.com/gmabey/json-schema-validator/tree/draft_2020_12 |
Beta Was this translation helpful? Give feedback.
-
Does library supports validating schema syntax itself before loading schema. I tried with invalid schema, which contains invalid keywords, but it could be loaded successfully with example application
json-schema-validator-2.3.0/example/json-schema-validate.cpp
.Schemafile I loaded with well-formatted but contained syntax errors on json schema keywords, like "object" is not spelled completely:
Beta Was this translation helpful? Give feedback.
All reactions