Skip to content

Commit e3c007d

Browse files
committed
added null-handling tests for unevaluatedProperties
1 parent 3d3bdf4 commit e3c007d

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/draft2019-09/unevaluatedProperties.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1343,5 +1343,20 @@
13431343
"valid": true
13441344
}
13451345
]
1346+
},
1347+
{
1348+
"description": "unevaluatedProperties should properly handle null data",
1349+
"schema": {
1350+
"unevaluatedProperties": {
1351+
"type": null
1352+
}
1353+
},
1354+
"tests": [
1355+
{
1356+
"description": "null properties allowed",
1357+
"data": {"foo": null},
1358+
"valid": true
1359+
}
1360+
]
13461361
}
13471362
]

0 commit comments

Comments
 (0)