Mohamed Abukar | b175b94 | 2019-05-09 16:30:58 +0300 | [diff] [blame] | 1 | { |
| 2 | "definitions": {}, |
| 3 | "$schema": "http://json-schema.org/draft-07/schema#", |
| 4 | "$id": "http://example.com/root.json", |
| 5 | "type": "object", |
| 6 | "title": "The Root Schema", |
| 7 | "required": [ |
| 8 | "local", |
| 9 | "logger" |
| 10 | ], |
| 11 | "properties": { |
| 12 | "local": { |
| 13 | "$id": "#/properties/local", |
| 14 | "type": "object", |
| 15 | "title": "The Local Schema", |
| 16 | "required": [ |
| 17 | "host" |
| 18 | ], |
| 19 | "properties": { |
| 20 | "host": { |
| 21 | "$id": "#/properties/local/properties/host", |
| 22 | "type": "string", |
| 23 | "title": "The Host Schema", |
| 24 | "default": "", |
| 25 | "pattern": "^(.*)$" |
| 26 | } |
| 27 | } |
| 28 | }, |
| 29 | "logger": { |
| 30 | "$id": "#/properties/logger", |
| 31 | "type": "object", |
| 32 | "title": "The Logger Schema", |
| 33 | "required": [ |
| 34 | "level" |
| 35 | ], |
| 36 | "properties": { |
| 37 | "level": { |
| 38 | "$id": "#/properties/logger/properties/level", |
| 39 | "type": "integer", |
| 40 | "title": "The Level Schema", |
| 41 | "default": 0 |
| 42 | } |
| 43 | } |
| 44 | } |
| 45 | } |
| 46 | } |