You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to see if anyone can point me in the right direction with an issue I'm having.
I'm sure this comes from my lack of understanding but is there a way to have validation fail if things are provided that are not part of the required key?
For example, I have a schema that looks like this:
Note that it should be specified on every object, as JSON Schema is open by default (i.e. anything passes).
schemasafe has a requireValidation: true option (which is not a part of the schema itself and has to be specified in options), the effect of it is that it refuses to use schemas that can allow unvalidated properties. I.e. it enforces the usage of additionalProperties or unevaluatedProperties and makes sure that it's not missed in any object.
I'm going to close this question as answered, as it's not an issue.
I wanted to see if anyone can point me in the right direction with an issue I'm having.
I'm sure this comes from my lack of understanding but is there a way to have validation fail if things are provided that are not part of the
required
key?For example, I have a schema that looks like this:
Using that schema, if I validate the below object I would expect it to fail. This is not the case, is there a way to achieve that?
Thanks in advance for any help.
The text was updated successfully, but these errors were encountered: