Files
deb-python-jsonschema/json/tests/draft4/default.json
Julian Berman 62e942ea37 Merge commit '45cf1fb8a6a0b7ea1ab8de8ea9fc7addb0ffd149'
* commit '45cf1fb8a6a0b7ea1ab8de8ea9fc7addb0ffd149':
  Squashed 'json/' changes from 3cef243..9208016
2014-12-07 12:22:37 -05:00

50 lines
1.2 KiB
JSON

[
{
"description": "invalid type for default",
"schema": {
"properties": {
"foo": {
"type": "integer",
"default": []
}
}
},
"tests": [
{
"description": "valid when property is specified",
"data": {"foo": 13},
"valid": true
},
{
"description": "still valid when the invalid default is used",
"data": {},
"valid": true
}
]
},
{
"description": "invalid string value for default",
"schema": {
"properties": {
"bar": {
"type": "string",
"minLength": 4,
"default": "bad"
}
}
},
"tests": [
{
"description": "valid when property is specified",
"data": {"bar": "good"},
"valid": true
},
{
"description": "still valid when the invalid default is used",
"data": {},
"valid": true
}
]
}
]