I have the following schema and json, the json schema validation is failing on the log property as it could not find value "yes" on the instance. The same thing passes in the validator tool https://www.jsonschemavalidator.net/ but not in my code. I don't know what is going on
[u'yes'] is not one of ['no', 'yes']
Failed validating 'enum' in schema['properties']['systems']['items']['properties']['log']: {'enum': ['no', 'yes']}
On instance['systems'][0]['log']: [u'yes']
Schema
{
"signatures": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"log": {
"enum": ["no", "yes"]
}
},
"additionalProperties": false
}
}
}
JSON
{
"signatures": [
{
"description": "Protocol",
"name": "attempt_1",
"log": [
"yes"
],
"id": "1550",
}
]
}