| 1 |
[ |
| 2 |
{ |
| 3 |
"description": "schema that uses custom metaschema with format-assertion: false", |
| 4 |
"schema": { |
| 5 |
"$id": "https://schema/using/format-assertion/false", |
| 6 |
"$schema": "http://localhost:1234/draft2020-12/format-assertion-false.json", |
| 7 |
"format": "ipv4" |
| 8 |
}, |
| 9 |
"tests": [ |
| 10 |
{ |
| 11 |
"description": "format-assertion: false: valid string", |
| 12 |
"data": "127.0.0.1", |
| 13 |
"valid": true |
| 14 |
}, |
| 15 |
{ |
| 16 |
"description": "format-assertion: false: invalid string", |
| 17 |
"data": "not-an-ipv4", |
| 18 |
"valid": false |
| 19 |
} |
| 20 |
] |
| 21 |
}, |
| 22 |
{ |
| 23 |
"description": "schema that uses custom metaschema with format-assertion: true", |
| 24 |
"schema": { |
| 25 |
"$id": "https://schema/using/format-assertion/true", |
| 26 |
"$schema": "http://localhost:1234/draft2020-12/format-assertion-true.json", |
| 27 |
"format": "ipv4" |
| 28 |
}, |
| 29 |
"tests": [ |
| 30 |
{ |
| 31 |
"description": "format-assertion: true: valid string", |
| 32 |
"data": "127.0.0.1", |
| 33 |
"valid": true |
| 34 |
}, |
| 35 |
{ |
| 36 |
"description": "format-assertion: true: invalid string", |
| 37 |
"data": "not-an-ipv4", |
| 38 |
"valid": false |
| 39 |
} |
| 40 |
] |
| 41 |
} |
| 42 |
] |