Skip to content

Commit e86adb2

Browse files
committed
draft-06: $ref to boolean schemas
1 parent d62b754 commit e86adb2

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

tests/draft6/ref.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,5 +208,37 @@
208208
"valid": false
209209
}
210210
]
211+
},
212+
{
213+
"description": "$ref to boolean schema true",
214+
"schema": {
215+
"$ref": "#/definitions/bool",
216+
"definitions": {
217+
"bool": true
218+
}
219+
},
220+
"tests": [
221+
{
222+
"description": "any value is valid",
223+
"data": "foo",
224+
"valid": true
225+
}
226+
]
227+
},
228+
{
229+
"description": "$ref to boolean schema false",
230+
"schema": {
231+
"$ref": "#/definitions/bool",
232+
"definitions": {
233+
"bool": false
234+
}
235+
},
236+
"tests": [
237+
{
238+
"description": "any value is invalid",
239+
"data": "foo",
240+
"valid": false
241+
}
242+
]
211243
}
212244
]

0 commit comments

Comments
 (0)