Skip to content

Commit 20f4897

Browse files
docs: clarify intent of format-assertion vocabulary test cases (#854)
1 parent eb01855 commit 20f4897

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/draft2020-12/optional/format-assertion.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[
22
{
33
"description": "schema that uses custom metaschema with format-assertion: false",
4+
"comment": "The true/false boolean in $vocabulary only controls behavior for implementations that do not recognize the vocabulary. For implementations that do understand format-assertion, the boolean has no impact on validation behavior — hence both test groups produce identical results.",
45
"schema": {
56
"$id": "https://schema/using/format-assertion/false",
67
"$schema": "http://localhost:1234/draft2020-12/format-assertion-false.json",
@@ -14,6 +15,7 @@
1415
},
1516
{
1617
"description": "format-assertion: false: invalid string",
18+
"comment": "valid: false is intentional — the false value in $vocabulary only affects unknown vocabulary handling, not validation behavior itself",
1719
"data": "not-an-ipv4",
1820
"valid": false
1921
}

0 commit comments

Comments
 (0)