diff options
Diffstat (limited to 'src/s3select/rapidjson/bin/jsonschema/tests/draft3/default.json')
-rw-r--r-- | src/s3select/rapidjson/bin/jsonschema/tests/draft3/default.json | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/src/s3select/rapidjson/bin/jsonschema/tests/draft3/default.json b/src/s3select/rapidjson/bin/jsonschema/tests/draft3/default.json new file mode 100644 index 000000000..17629779f --- /dev/null +++ b/src/s3select/rapidjson/bin/jsonschema/tests/draft3/default.json @@ -0,0 +1,49 @@ +[ + { + "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 + } + ] + } +] |