hasbridge/php-json-schema

required

Closed this issue · 1 comments

Hi
I have the validation working for the types
but when I remove a node like firstname that is required I don't get an Exception ?
isn't this supported ?
Thanks

it works when the requried node is on the field itself like this
"firstName": {
"type": "string",
"required" : true
},

doesn't work like in the sample
"required": ["firstName", "lastName"]