Skip to content
Snippets Groups Projects
Commit a058881d authored by Alvaro Cabrera's avatar Alvaro Cabrera
Browse files

Keyword testing

parent 0e062870
No related branches found
No related tags found
No related merge requests found
[
{
"description": "instance keywords",
"tests": [
{
"description": "should handle array of types",
"schema": {
"type": ["string", "number"]
},
"valid": true
},
{
"description": "should handle enum values",
"schema": {
"enum": ["", [], {}, false, null, -1]
},
"valid": true
},
{
"description": "should handle allOf values",
"schema": {
"allOf": [
{
"type": "string"
},
{
"enum": ["a", "value"]
}
]
},
"valid": true
},
{
"description": "should handle anyof values",
"schema": {
"anyOf": [
{
"type": "number"
},
{
"type": "array"
}
]
},
"valid": true
},
{
"description": "should handle oneOf values",
"schema": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "null"
}
]
},
"valid": true
}
]
}
]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment