fields listed in 'required' not validated against 'properties'
jeffwklein opened this issue · 1 comments
jeffwklein commented
Say we have the following schema:
{
"properties": {
"name": { "type": "string" }
},
"required": [
"fieldThatIsNotInProperties"
]
}
As far as I can tell, this is considered valid by this library.
The JSON Schema spec clearly states:
An object instance is valid against this keyword if every item in the array is the name of a property in the instance.
Is it possible that this case is not covered?
jeffwklein commented
nevermind, i misunderstood the spec.