|
3 | 3 | "$schema": "http://json-schema.org/draft-07/schema#",
|
4 | 4 | "additionalProperties": false,
|
5 | 5 | "definitions": {
|
6 |
| - "DetachableConfiguration": { |
| 6 | + "ConsoleType": { |
| 7 | + "description": "Run mode for Robot Framework.", |
| 8 | + "enum": [ |
| 9 | + "verbose", |
| 10 | + "dotted", |
| 11 | + "quiet", |
| 12 | + "none" |
| 13 | + ], |
| 14 | + "title": "ConsoleType", |
| 15 | + "type": "string" |
| 16 | + }, |
| 17 | + "Mode": { |
| 18 | + "description": "Run mode for Robot Framework.", |
| 19 | + "enum": [ |
| 20 | + "default", |
| 21 | + "rpa", |
| 22 | + "norpa" |
| 23 | + ], |
| 24 | + "title": "Mode", |
| 25 | + "type": "string" |
| 26 | + }, |
| 27 | + "Profile": { |
7 | 28 | "additionalProperties": false,
|
8 | 29 | "properties": {
|
9 | 30 | "args": {
|
|
15 | 36 | "type": "array"
|
16 | 37 | },
|
17 | 38 | "console": {
|
18 |
| - "title": "Console", |
19 |
| - "type": "string" |
| 39 | + "anyOf": [ |
| 40 | + { |
| 41 | + "$ref": "#/definitions/ConsoleType" |
| 42 | + }, |
| 43 | + { |
| 44 | + "type": "string" |
| 45 | + } |
| 46 | + ], |
| 47 | + "description": "Console output type.", |
| 48 | + "title": "Console" |
20 | 49 | },
|
21 | 50 | "debug-file": {
|
22 | 51 | "title": "Debug-File",
|
23 | 52 | "type": "string"
|
24 | 53 | },
|
| 54 | + "description": { |
| 55 | + "description": "Description of the profile.", |
| 56 | + "title": "Description", |
| 57 | + "type": "string" |
| 58 | + }, |
25 | 59 | "detached": {
|
26 | 60 | "default": false,
|
| 61 | + "description": "If the profile should be detached.\"\nDetached means it is not inherited from the main profile.\n", |
27 | 62 | "title": "Detached",
|
28 | 63 | "type": "boolean"
|
29 | 64 | },
|
|
68 | 103 | "type": "string"
|
69 | 104 | },
|
70 | 105 | "meta-data": {
|
71 |
| - "items": { |
72 |
| - "type": "string" |
73 |
| - }, |
| 106 | + "description": "Set metadata of the top level suite. Value can\ncontain formatting and be read from a file similarly\n\nExamples:\n```toml\n[meta-data]\nVersion = \"1.2\"\nRelease = \"release.txt\"\n```\n", |
74 | 107 | "title": "Meta-Data",
|
75 |
| - "type": "array" |
| 108 | + "type": "object" |
76 | 109 | },
|
77 | 110 | "mode": {
|
78 | 111 | "$ref": "#/definitions/Mode"
|
|
94 | 127 | "type": "object"
|
95 | 128 | },
|
96 | 129 | "paths": {
|
97 |
| - "items": { |
98 |
| - "type": "string" |
99 |
| - }, |
100 |
| - "title": "Paths", |
101 |
| - "type": "array" |
| 130 | + "anyOf": [ |
| 131 | + { |
| 132 | + "type": "string" |
| 133 | + }, |
| 134 | + { |
| 135 | + "items": { |
| 136 | + "type": "string" |
| 137 | + }, |
| 138 | + "type": "array" |
| 139 | + } |
| 140 | + ], |
| 141 | + "description": "Paths to test data. If no paths are given at the command line this value is used.\n", |
| 142 | + "title": "Paths" |
102 | 143 | },
|
103 | 144 | "pre-rebot-modifiers": {
|
104 | 145 | "additionalProperties": {
|
|
117 | 158 | "type": "object"
|
118 | 159 | },
|
119 | 160 | "python-path": {
|
120 |
| - "description": "Additional locations directories where\nto search test libraries and other extensions when\nthey are imported. Given path can also be a glob\npattern matching multiple paths.\n\nExamples:\n```toml\npython_path = [\"./lib\", \"./resources\"]\n```\n", |
| 161 | + "description": "Additional locations directories where\nto search test libraries and other extensions when\nthey are imported. Given path can also be a glob\npattern matching multiple paths.\n\nExamples:\n```toml\npython-path = [\"./lib\", \"./resources\"]\n```\n", |
121 | 162 | "items": {
|
122 | 163 | "type": "string"
|
123 | 164 | },
|
|
139 | 180 | },
|
140 | 181 | "title": "robot.toml",
|
141 | 182 | "type": "object"
|
142 |
| - }, |
143 |
| - "Mode": { |
144 |
| - "description": "Run mode for Robot Framework.", |
145 |
| - "enum": [ |
146 |
| - "default", |
147 |
| - "rpa", |
148 |
| - "norpa" |
149 |
| - ], |
150 |
| - "title": "Mode" |
151 | 183 | }
|
152 | 184 | },
|
153 | 185 | "description": "Configuration for Robot Framework.",
|
|
161 | 193 | "type": "array"
|
162 | 194 | },
|
163 | 195 | "console": {
|
164 |
| - "title": "Console", |
165 |
| - "type": "string" |
| 196 | + "anyOf": [ |
| 197 | + { |
| 198 | + "$ref": "#/definitions/ConsoleType" |
| 199 | + }, |
| 200 | + { |
| 201 | + "type": "string" |
| 202 | + } |
| 203 | + ], |
| 204 | + "description": "Console output type.", |
| 205 | + "title": "Console" |
166 | 206 | },
|
167 | 207 | "debug-file": {
|
168 | 208 | "title": "Debug-File",
|
169 | 209 | "type": "string"
|
170 | 210 | },
|
| 211 | + "default-profile": { |
| 212 | + "anyOf": [ |
| 213 | + { |
| 214 | + "type": "string" |
| 215 | + }, |
| 216 | + { |
| 217 | + "items": { |
| 218 | + "type": "string" |
| 219 | + }, |
| 220 | + "type": "array" |
| 221 | + } |
| 222 | + ], |
| 223 | + "description": "Selects the Default profile if no profile is given at command line.\n\nExamples:\n```toml\ndefault_profile = \"default\"\n```\n\n```toml\ndefault_profile = [\"default\", \"Firefox\"]\n```\n", |
| 224 | + "title": "Default-Profile" |
| 225 | + }, |
171 | 226 | "doc": {
|
172 | 227 | "description": "Set the documentation of the top level suite.\nSimple formatting is supported (e.g. *bold*). If the\ndocumentation contains spaces, it must be quoted.\nIf the value is path to an existing file, actual\ndocumentation is read from that file.\n\nExamples:\n```toml\ndoc = \"\"\"Very *good* example\n\nThis is a second paragraph.\n\"\"\"\n```\n",
|
173 | 228 | "title": "Doc",
|
|
209 | 264 | "type": "string"
|
210 | 265 | },
|
211 | 266 | "meta-data": {
|
212 |
| - "items": { |
213 |
| - "type": "string" |
214 |
| - }, |
| 267 | + "description": "Set metadata of the top level suite. Value can\ncontain formatting and be read from a file similarly\n\nExamples:\n```toml\n[meta-data]\nVersion = \"1.2\"\nRelease = \"release.txt\"\n```\n", |
215 | 268 | "title": "Meta-Data",
|
216 |
| - "type": "array" |
| 269 | + "type": "object" |
217 | 270 | },
|
218 | 271 | "mode": {
|
219 | 272 | "$ref": "#/definitions/Mode"
|
|
235 | 288 | "type": "object"
|
236 | 289 | },
|
237 | 290 | "paths": {
|
238 |
| - "items": { |
239 |
| - "type": "string" |
240 |
| - }, |
241 |
| - "title": "Paths", |
242 |
| - "type": "array" |
| 291 | + "anyOf": [ |
| 292 | + { |
| 293 | + "type": "string" |
| 294 | + }, |
| 295 | + { |
| 296 | + "items": { |
| 297 | + "type": "string" |
| 298 | + }, |
| 299 | + "type": "array" |
| 300 | + } |
| 301 | + ], |
| 302 | + "description": "Paths to test data. If no paths are given at the command line this value is used.\n", |
| 303 | + "title": "Paths" |
243 | 304 | },
|
244 | 305 | "pre-rebot-modifiers": {
|
245 | 306 | "additionalProperties": {
|
|
259 | 320 | },
|
260 | 321 | "profiles": {
|
261 | 322 | "additionalProperties": {
|
262 |
| - "$ref": "#/definitions/DetachableConfiguration" |
| 323 | + "$ref": "#/definitions/Profile" |
263 | 324 | },
|
264 | 325 | "description": "Execution Profiles.",
|
265 | 326 | "title": "Profiles",
|
266 | 327 | "type": "object"
|
267 | 328 | },
|
268 | 329 | "python-path": {
|
269 |
| - "description": "Additional locations directories where\nto search test libraries and other extensions when\nthey are imported. Given path can also be a glob\npattern matching multiple paths.\n\nExamples:\n```toml\npython_path = [\"./lib\", \"./resources\"]\n```\n", |
| 330 | + "description": "Additional locations directories where\nto search test libraries and other extensions when\nthey are imported. Given path can also be a glob\npattern matching multiple paths.\n\nExamples:\n```toml\npython-path = [\"./lib\", \"./resources\"]\n```\n", |
270 | 331 | "items": {
|
271 | 332 | "type": "string"
|
272 | 333 | },
|
|
0 commit comments