t/invalid-schemas/invalid-input.json
raw| 1 | [ |
| 2 | { |
| 3 | "description": "invalid user input: type (string)", |
| 4 | "schema": { |
| 5 | "type": null |
| 6 | }, |
| 7 | "tests": [ |
| 8 | { |
| 9 | "description": "graceful error from 'type' (string)", |
| 10 | "data": 1, |
| 11 | "valid": false |
| 12 | } |
| 13 | ] |
| 14 | }, |
| 15 | { |
| 16 | "description": "invalid user input: type (array)", |
| 17 | "schema": { |
| 18 | "type": [ "string", null ] |
| 19 | }, |
| 20 | "tests": [ |
| 21 | { |
| 22 | "description": "graceful error from 'type' (array)", |
| 23 | "data": 1, |
| 24 | "valid": false |
| 25 | } |
| 26 | ] |
| 27 | } |
| 28 | ] |