tdegrunt / jsonschema

JSON Schema validation
Other
1.83k stars 263 forks source link

Validation error "instance is not allowed to have the additional property "default"" when using "additionalProperties": false, #338

Closed ghost closed 3 years ago

ghost commented 3 years ago

When using the "additionalProperties": false on an object type the validator throw an error: instance is not allowed to have the additional property "default" How could this be prevented?

tdegrunt commented 3 years ago

This is not really the place to ask questions - ask them here instead: https://stackoverflow.com/questions/tagged/jsonschema That being said: without seeing the instance this is hard to answer, but I'm guessing property default is not in your schema.