share/tests/draft2020-12/optional/no-schema.json
raw| 1 | [ |
| 2 | { |
| 3 | "description": "validation without $schema", |
| 4 | "comment": "minLength is the same across all drafts", |
| 5 | "schema": { |
| 6 | "minLength": 2 |
| 7 | }, |
| 8 | "tests": [ |
| 9 | { |
| 10 | "description": "a 3-character string is valid", |
| 11 | "data": "foo", |
| 12 | "valid": true |
| 13 | }, |
| 14 | { |
| 15 | "description": "a 1-character string is not valid", |
| 16 | "data": "a", |
| 17 | "valid": false |
| 18 | }, |
| 19 | { |
| 20 | "description": "a non-string is valid", |
| 21 | "data": 5, |
| 22 | "valid": true |
| 23 | } |
| 24 | ] |
| 25 | } |
| 26 | ] |