I have a special enum case in my code and need to validate against it:
{
"status": 10
}
Let's use this imaginary list of valid values:
var valid = [10, 20, 23, 27];
How can I alter my JSON Schema to validate one of these values?
{
type: 'object',
required: ['status'],
properties: {
status: { type: number },
}
}