Closed biznickman closed 8 years ago
@biznickman When you use strict mode, all properties are required, regardless of what you've specified in the required
property. Perhaps you'd be better adding additionalProperties: false
and not using strict mode.
I have the following schema:
My API response is as follows:
{"twilio_account":{"twilio_account_id":2}}
However when I run it through the validator it raises the error:
The property '#/twilio_account' did not contain a required property of 'sid'
I do happen to be using the validator in strict mode, however I've clearly specified which attributes are required. Are all still required?