draft-06: $ref to boolean schemas
"valid": false
}
]
+ },
+ {
+ "description": "$ref to boolean schema true",
+ "schema": {
+ "$ref": "#/definitions/bool",
+ "definitions": {
+ "bool": true
+ }
+ },
+ "tests": [
+ {
+ "description": "any value is valid",
+ "data": "foo",
+ "valid": true
+ }
+ ]
+ },
+ {
+ "description": "$ref to boolean schema false",
+ "schema": {
+ "$ref": "#/definitions/bool",
+ "definitions": {
+ "bool": false
+ }
+ },
+ "tests": [
+ {
+ "description": "any value is invalid",
+ "data": "foo",
+ "valid": false
+ }
+ ]
}
]
