Reputation: 15454
Is there JSON Schema of JSON Schema? In my app user can upload his JSON schema and I would like to validate it if it's a valid JSON Schema.
Upvotes: 14
Views: 1799
Reputation: 9628
Yes - it is recommended that schemas reference the schema that they are implementing by declaring a "$schema"
property. At the time of writing, this is most commonly "http://json-schema.org/draft-04/schema#"
See https://spacetelescope.github.io/understanding-json-schema/reference/schema.html for some discussion about the $schema keyword.
Upvotes: 0