Stranger6667 / jsonschema-rs

JSON Schema validation library
https://docs.rs/jsonschema
MIT License
482 stars 90 forks source link

[Feature Request] validate() function #442

Open n0madsky opened 7 months ago

n0madsky commented 7 months ago

Hello, I'm wondering if we can make a function that just validates the JSON Schema itself, and not actually compile it into a JSONSchema, I currently just need to validate that the JSONSchema Received is valid, and doesn't need to actually use the schema itself.

I'm happy to open a Pull Request for this, since there seem to be existing functionality that already does this.

Stranger6667 commented 1 month ago

There is already a meta schema that does exactly this. I.e. you can use any of those to validate JSON Schemas. Internally, jsonschema contains such meta-validators here but they are not public