| 1 | { |
| 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", |
| 3 | "title": "MyStruct", |
| 4 | "type": "object", |
| 5 | "properties": { |
| 6 | "definitely_string": { |
| 7 | "type": "string" |
| 8 | }, |
| 9 | "maybe_string": { |
| 10 | "type": "string" |
| 11 | }, |
| 12 | "my_int": { |
| 13 | "type": "integer", |
| 14 | "format": "int32" |
| 15 | }, |
| 16 | "my_read_only_bool": { |
| 17 | "type": "boolean", |
| 18 | "default": false, |
| 19 | "readOnly": true |
| 20 | } |
| 21 | }, |
| 22 | "required": [ |
| 23 | "my_int", |
| 24 | "my_read_only_bool", |
| 25 | "definitely_string" |
| 26 | ] |
| 27 | } |