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

Add spec from pending #255 PR; fix #238

parent 4ff5a22b
Branches
Tags
No related merge requests found
[
{
"description": "allow empty arrays and null values as result",
"tests": [
{
"description": "should not filter out null elements from array",
"schema": {
"properties": {
"myArrayWithNullValue": {
"type": [
"array"
],
"items": {
"type": [
"null"
]
},
"minimum": 1,
"minItems": 1,
"maxItems": 1
}
},
"required": [
"myArrayWithNullValue"
]
},
"valid": true
},
{
"description": "should create array without elements",
"schema": {
"type": "array",
"items": {
"type": [
"null"
]
},
"minimum": 1,
"maximum": 1,
"minItems": 0,
"maxItems": 0
},
"valid": true
},
{
"description": "should create null value",
"schema": {
"id": "fooNull",
"properties": {
"fooNull": {
"type": [
"null"
]
}
},
"required": [
"fooNull"
]
},
"valid": true
}
]
}
]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment