|
| 1 | +{ |
| 2 | + "$schema": "http://json-schema.org/draft-04/schema#", |
| 3 | + "id": "https://raw.githubusercontent.com/linutil-tab-data.json", |
| 4 | + "definitions": { |
| 5 | + "string-property": { |
| 6 | + "type": "string", |
| 7 | + "minLength": 1, |
| 8 | + "pattern": "[^ ]" |
| 9 | + } |
| 10 | + }, |
| 11 | + "title": "tab data", |
| 12 | + "description": "Tab data", |
| 13 | + "type": "object", |
| 14 | + "required": ["name", "data"], |
| 15 | + "properties": { |
| 16 | + "name": { |
| 17 | + "$ref": "#/definitions/string-property", |
| 18 | + "title": "name", |
| 19 | + "description": "The name of a tab" |
| 20 | + }, |
| 21 | + "data": { |
| 22 | + "title": "data", |
| 23 | + "description": "The data of a tab", |
| 24 | + "type": "array", |
| 25 | + "minItems": 1, |
| 26 | + "uniqueItems": true, |
| 27 | + "items": { |
| 28 | + "title": "data entry", |
| 29 | + "description": "The data entry of a tab", |
| 30 | + "type": "object", |
| 31 | + "properties": { |
| 32 | + "name": { |
| 33 | + "$ref": "#/definitions/string-property", |
| 34 | + "title": "name", |
| 35 | + "description": "The name of a tab entry" |
| 36 | + }, |
| 37 | + "script": { |
| 38 | + "$ref": "#/definitions/string-property", |
| 39 | + "title": "script", |
| 40 | + "description": "The script run of a tab entry" |
| 41 | + }, |
| 42 | + "preconditions": { |
| 43 | + "title": "preconditions", |
| 44 | + "description": "Preconditions of a tab entry", |
| 45 | + "type": "array", |
| 46 | + "minItems": 1, |
| 47 | + "uniqueItems": true, |
| 48 | + "items": { |
| 49 | + "title": "precondition entry", |
| 50 | + "description": "The precondition entry of a tab entry", |
| 51 | + "type": "object", |
| 52 | + "properties": { |
| 53 | + "matches": { |
| 54 | + "title": "matches", |
| 55 | + "description": "Whether to require the condition to match or not for a precondition entry", |
| 56 | + "type": "boolean" |
| 57 | + }, |
| 58 | + "data": { |
| 59 | + "title": "data", |
| 60 | + "description": "The data of a tab precondition entry", |
| 61 | + "type": "object", |
| 62 | + "properties": { |
| 63 | + "environment": { |
| 64 | + "$ref": "#/definitions/string-property", |
| 65 | + "title": "environment", |
| 66 | + "description": "The environment variable of a data" |
| 67 | + } |
| 68 | + }, |
| 69 | + "additionalProperties": false |
| 70 | + }, |
| 71 | + "values": { |
| 72 | + "title": "values", |
| 73 | + "description": "The values of a tab precondition entry", |
| 74 | + "type": "array", |
| 75 | + "minItems": 1, |
| 76 | + "uniqueItems": true, |
| 77 | + "items": { |
| 78 | + "title": "entry", |
| 79 | + "description": "The entry of values", |
| 80 | + "type": "string" |
| 81 | + } |
| 82 | + } |
| 83 | + }, |
| 84 | + "additionalProperties": false |
| 85 | + } |
| 86 | + }, |
| 87 | + "entries": { |
| 88 | + "title": "entries", |
| 89 | + "description": "The entries of a tab entry", |
| 90 | + "type": "array", |
| 91 | + "minItems": 1, |
| 92 | + "uniqueItems": true, |
| 93 | + "items": { |
| 94 | + "title": "entry", |
| 95 | + "description": "The entry", |
| 96 | + "type": "object", |
| 97 | + "properties": { |
| 98 | + "name": { |
| 99 | + "$ref": "#/definitions/string-property", |
| 100 | + "title": "name", |
| 101 | + "description": "The name of a tab entry" |
| 102 | + }, |
| 103 | + "script": { |
| 104 | + "$ref": "#/definitions/string-property", |
| 105 | + "title": "script", |
| 106 | + "description": "The script run of a tab entry" |
| 107 | + }, |
| 108 | + "matches": { |
| 109 | + "title": "matches", |
| 110 | + "description": "Whether to require the condition to match or not for an entry", |
| 111 | + "type": "boolean" |
| 112 | + } |
| 113 | + }, |
| 114 | + "additionalProperties": false |
| 115 | + } |
| 116 | + } |
| 117 | + }, |
| 118 | + "additionalProperties": false |
| 119 | + } |
| 120 | + } |
| 121 | + }, |
| 122 | + "additionalProperties": false |
| 123 | +} |
0 commit comments