Closed peerapats closed 7 years ago
I have tested with following code, it always pass validation.
const Schema = require('another-json-schema'); const schema = Schema({ os: { type: 'string', enum: ['ios', 'android'] }, name: { type: 'string', required: true }, }); let phone = { os: 'ios', }; console.log(schema.validate(phone));
No required: true option provided.
required: true
v3.0.0 support required: true
I have tested with following code, it always pass validation.