-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Description
I have schemas that reference other Ids in the same schema and they always validate, even when they shouldn't.
For example this data:
{
"name": "Joe",
"toys": [{
"name": "car",
"price": 23
}]
}
will validate against this schema, but it shouldn't because the toy has no color.
{
"kid": {
"id": "kid",
"required": ["name",
"toys"],
"properties": {
"name": {
"type": "string"
},
"toys": {
"type": "array",
"items": {
"$ref": "toy"
}
}
}
},
"toy": {
"id": "toy",
"required": ["name",
"price",
"color"],
"properties": {
"name": {
"type": "string"
},
"price": {
"type": "integer"
},
"color": {
"type": "string"
}
}
}
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels