We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95fe6ca commit d4af8eeCopy full SHA for d4af8ee
tests/draft2020-12/dynamicRef.json
@@ -726,5 +726,32 @@
726
"valid": false
727
}
728
]
729
+ },
730
+ {
731
+ "description": "$dynamicRef points to a boolean schema",
732
+ "schema": {
733
+ "$defs": {
734
+ "boolean": true
735
736
+ "type": "object",
737
+ "properties": {
738
+ "true": {
739
+ "$dynamicRef": "#/$defs/boolean"
740
741
+ "false": false
742
+ }
743
744
+ "tests": [
745
746
+ "description": "follow $dynamicRef to a true schema",
747
+ "data": { "true": 1 },
748
+ "valid": true
749
750
751
+ "description": "false schema",
752
+ "data": { "false": 1 },
753
+ "valid": false
754
755
+ ]
756
757
0 commit comments