-
Notifications
You must be signed in to change notification settings - Fork 363
Closed
Description
I'm using schema provided below to validate content {"number":null,"country":{},"bank":{}}, content is valid but should not be.
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"number": {
"type": "object"
},
"scheme": {
"type": "string"
},
"type": {
"type": "string"
},
"brand": {
"type": "string"
},
"country": {
"type": "object",
"properties": {
"numeric": {
"type": "string"
},
"alpha2": {
"type": "string"
},
"name": {
"type": "string"
},
"emoji": {
"type": "string"
},
"currency": {
"type": "string"
},
"latitude": {
"type": "integer"
},
"longitude": {
"type": "integer"
}
},
"required": [
"numeric",
"alpha2",
"name",
"emoji",
"currency",
"latitude",
"longitude"
]
},
"bank": {
"type": "object",
"properties": {
"name": {
"type": "string"
}
},
"required": [
"name"
]
}
},
"required": [
"number",
"scheme",
"type",
"brand",
"country",
"bank"
]
}Metadata
Metadata
Assignees
Labels
No labels