Closed tokubass closed 6 years ago
JSON Schema ignores additional/unknown properties in the schema (like typee
in your example) in order to be easily extensible. You can have a look at the draft 4 meta-schema here: http://json-schema.org/draft-04/schema (it's surprisingly simple).
I don't think that's something that can be solved on a library level, because people could use their schema to add all sorts of additional properties. You could define your own meta-schema (based on the draft 4 meta-schema) and use that custom meta-schema to validate your schema.
thank you. I wil try locking properties on a application level.
The following test succeed due to typo.
What is the correct way to prevent typo ?
ex_json_schema
?