doc-detective-common 3.0.4-dev.2 → 3.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/npm-test.yml +55 -5
- package/package.json +2 -2
- package/src/schemas/dereferenceSchemas.js +39 -20
- package/src/schemas/output_schemas/checkLink_v3.schema.json +4 -0
- package/src/schemas/output_schemas/click_v3.schema.json +2 -2
- package/src/schemas/output_schemas/config_v3.schema.json +603 -241
- package/src/schemas/output_schemas/context_v3.schema.json +18 -9
- package/src/schemas/output_schemas/find_v3.schema.json +24 -8
- package/src/schemas/output_schemas/goTo_v3.schema.json +6 -2
- package/src/schemas/output_schemas/httpRequest_v3.schema.json +64 -22
- package/src/schemas/output_schemas/openApi_v3.schema.json +4 -2
- package/src/schemas/output_schemas/record_v3.schema.json +9 -3
- package/src/schemas/output_schemas/report_v3.schema.json +618 -248
- package/src/schemas/output_schemas/resolvedTests_v3.schema.json +1222 -490
- package/src/schemas/output_schemas/runCode_v3.schema.json +4 -2
- package/src/schemas/output_schemas/runShell_v3.schema.json +8 -2
- package/src/schemas/output_schemas/screenshot_v3.schema.json +28 -9
- package/src/schemas/output_schemas/spec_v3.schema.json +618 -248
- package/src/schemas/output_schemas/step_v3.schema.json +275 -107
- package/src/schemas/output_schemas/test_v3.schema.json +594 -236
- package/src/schemas/output_schemas/type_v3.schema.json +6 -0
- package/src/schemas/output_schemas/wait_v3.schema.json +6 -2
- package/src/schemas/schemas.json +4474 -1994
- package/src/schemas/src_schemas/checkLink_v3.schema.json +25 -7
- package/src/schemas/src_schemas/click_v3.schema.json +13 -5
- package/src/schemas/src_schemas/config_v3.schema.json +67 -23
- package/src/schemas/src_schemas/context_v3.schema.json +46 -13
- package/src/schemas/src_schemas/find_v3.schema.json +17 -6
- package/src/schemas/src_schemas/goTo_v3.schema.json +17 -7
- package/src/schemas/src_schemas/httpRequest_v3.schema.json +71 -20
- package/src/schemas/src_schemas/loadVariables_v3.schema.json +4 -2
- package/src/schemas/src_schemas/openApi_v3.schema.json +26 -8
- package/src/schemas/src_schemas/record_v3.schema.json +20 -7
- package/src/schemas/src_schemas/report_v3.schema.json +9 -3
- package/src/schemas/src_schemas/resolvedTests_v3.schema.json +78 -25
- package/src/schemas/src_schemas/runCode_v3.schema.json +29 -9
- package/src/schemas/src_schemas/runShell_v3.schema.json +40 -14
- package/src/schemas/src_schemas/screenshot_v3.schema.json +45 -14
- package/src/schemas/src_schemas/spec_v3.schema.json +26 -8
- package/src/schemas/src_schemas/step_v3.schema.json +99 -37
- package/src/schemas/src_schemas/stopRecord_v3.schema.json +13 -12
- package/src/schemas/src_schemas/test_v3.schema.json +43 -11
- package/src/schemas/src_schemas/type_v3.schema.json +2 -0
- package/src/schemas/src_schemas/wait_v3.schema.json +34 -26
- package/.github/workflows/npm-publish.yml +0 -62
|
@@ -12,27 +12,37 @@
|
|
|
12
12
|
"components": {
|
|
13
13
|
"schemas": {
|
|
14
14
|
"string": {
|
|
15
|
+
"title": "Check link (detailed)",
|
|
15
16
|
"description": "Check if an HTTP or HTTPS URL returns an acceptable status code from a GET request.",
|
|
16
17
|
"type": "string",
|
|
17
18
|
"pattern": "(^(http://|https://|\\/).*|\\$[A-Za-z0-9_]+$)",
|
|
18
|
-
"transform": [
|
|
19
|
+
"transform": [
|
|
20
|
+
"trim"
|
|
21
|
+
]
|
|
19
22
|
},
|
|
20
23
|
"object": {
|
|
24
|
+
"title": "Check link (detailed)",
|
|
21
25
|
"description": "Check if an HTTP or HTTPS URL returns an acceptable status code from a GET request.",
|
|
22
26
|
"type": "object",
|
|
23
27
|
"additionalProperties": false,
|
|
24
|
-
"required": [
|
|
28
|
+
"required": [
|
|
29
|
+
"url"
|
|
30
|
+
],
|
|
25
31
|
"properties": {
|
|
26
32
|
"url": {
|
|
27
33
|
"type": "string",
|
|
28
34
|
"description": "URL to check. Can be a full URL or a path. If a path is provided, `origin` must be specified.",
|
|
29
35
|
"pattern": "(^(http://|https://|/).*|\\$[A-Za-z0-9_]+)",
|
|
30
|
-
"transform": [
|
|
36
|
+
"transform": [
|
|
37
|
+
"trim"
|
|
38
|
+
]
|
|
31
39
|
},
|
|
32
40
|
"origin": {
|
|
33
41
|
"type": "string",
|
|
34
42
|
"description": "Protocol and domain to navigate to. Prepended to `url`.",
|
|
35
|
-
"transform": [
|
|
43
|
+
"transform": [
|
|
44
|
+
"trim"
|
|
45
|
+
]
|
|
36
46
|
},
|
|
37
47
|
"statusCodes": {
|
|
38
48
|
"description": "Accepted status codes. If the specified URL returns a code other than what is specified here, the action fails.",
|
|
@@ -51,7 +61,13 @@
|
|
|
51
61
|
}
|
|
52
62
|
}
|
|
53
63
|
],
|
|
54
|
-
"default": [
|
|
64
|
+
"default": [
|
|
65
|
+
200,
|
|
66
|
+
301,
|
|
67
|
+
302,
|
|
68
|
+
307,
|
|
69
|
+
308
|
|
70
|
+
]
|
|
55
71
|
}
|
|
56
72
|
}
|
|
57
73
|
}
|
|
@@ -67,7 +83,9 @@
|
|
|
67
83
|
{
|
|
68
84
|
"url": "/search",
|
|
69
85
|
"origin": "www.google.com",
|
|
70
|
-
"statusCodes": [
|
|
86
|
+
"statusCodes": [
|
|
87
|
+
200
|
|
88
|
+
]
|
|
71
89
|
}
|
|
72
90
|
]
|
|
73
|
-
}
|
|
91
|
+
}
|
|
@@ -16,24 +16,32 @@
|
|
|
16
16
|
"components": {
|
|
17
17
|
"schemas": {
|
|
18
18
|
"string": {
|
|
19
|
-
"title": "
|
|
19
|
+
"title": "Click element (simple)",
|
|
20
20
|
"type": "string",
|
|
21
21
|
"description": "Display text or selector of the element to find."
|
|
22
22
|
},
|
|
23
23
|
"button": {
|
|
24
24
|
"description": "Kind of click to perform.",
|
|
25
25
|
"type": "string",
|
|
26
|
-
"enum": [
|
|
26
|
+
"enum": [
|
|
27
|
+
"left",
|
|
28
|
+
"right",
|
|
29
|
+
"middle"
|
|
30
|
+
]
|
|
27
31
|
},
|
|
28
32
|
"object": {
|
|
29
33
|
"title": "Click element (detailed)",
|
|
30
34
|
"type": "object",
|
|
31
35
|
"anyOf": [
|
|
32
36
|
{
|
|
33
|
-
"required": [
|
|
37
|
+
"required": [
|
|
38
|
+
"selector"
|
|
39
|
+
]
|
|
34
40
|
},
|
|
35
41
|
{
|
|
36
|
-
"required": [
|
|
42
|
+
"required": [
|
|
43
|
+
"elementText"
|
|
44
|
+
]
|
|
37
45
|
}
|
|
38
46
|
],
|
|
39
47
|
"properties": {
|
|
@@ -65,4 +73,4 @@
|
|
|
65
73
|
"button": "middle"
|
|
66
74
|
}
|
|
67
75
|
]
|
|
68
|
-
}
|
|
76
|
+
}
|
|
@@ -39,7 +39,10 @@
|
|
|
39
39
|
"relativePathBase": {
|
|
40
40
|
"description": "Whether paths should be interpreted as relative to the current working directory (`cwd`) or to the file in which they're specified (`file`).",
|
|
41
41
|
"type": "string",
|
|
42
|
-
"enum": [
|
|
42
|
+
"enum": [
|
|
43
|
+
"cwd",
|
|
44
|
+
"file"
|
|
45
|
+
],
|
|
43
46
|
"default": "file"
|
|
44
47
|
},
|
|
45
48
|
"loadVariables": {
|
|
@@ -93,7 +96,13 @@
|
|
|
93
96
|
"logLevel": {
|
|
94
97
|
"description": "Amount of detail to output when performing an operation.",
|
|
95
98
|
"type": "string",
|
|
96
|
-
"enum": [
|
|
99
|
+
"enum": [
|
|
100
|
+
"silent",
|
|
101
|
+
"error",
|
|
102
|
+
"warning",
|
|
103
|
+
"info",
|
|
104
|
+
"debug"
|
|
105
|
+
],
|
|
97
106
|
"default": "info"
|
|
98
107
|
},
|
|
99
108
|
"runOn": {
|
|
@@ -101,7 +110,11 @@
|
|
|
101
110
|
},
|
|
102
111
|
"fileTypes": {
|
|
103
112
|
"description": "Configuration for file types and their markup detection.",
|
|
104
|
-
"default": [
|
|
113
|
+
"default": [
|
|
114
|
+
"markdown",
|
|
115
|
+
"asciidoc",
|
|
116
|
+
"html"
|
|
117
|
+
],
|
|
105
118
|
"anyOf": [
|
|
106
119
|
{
|
|
107
120
|
"type": "array",
|
|
@@ -110,15 +123,21 @@
|
|
|
110
123
|
"anyOf": [
|
|
111
124
|
{
|
|
112
125
|
"$comment": "Simple mode: Reference predefined templates by name.",
|
|
113
|
-
"title": "
|
|
126
|
+
"title": "File type (predefined)",
|
|
114
127
|
"type": "string",
|
|
115
|
-
"enum": [
|
|
128
|
+
"enum": [
|
|
129
|
+
"markdown",
|
|
130
|
+
"asciidoc",
|
|
131
|
+
"html"
|
|
132
|
+
]
|
|
116
133
|
},
|
|
117
134
|
{
|
|
118
135
|
"$comment": "Custom mode: Extend predefined templates or write whole new ones.",
|
|
119
|
-
"title": "
|
|
136
|
+
"title": "File type (custom)",
|
|
120
137
|
"type": "object",
|
|
121
|
-
"required": [
|
|
138
|
+
"required": [
|
|
139
|
+
"extensions"
|
|
140
|
+
],
|
|
122
141
|
"properties": {
|
|
123
142
|
"name": {
|
|
124
143
|
"description": "Name of the file type.",
|
|
@@ -128,7 +147,11 @@
|
|
|
128
147
|
"$comment": "In development",
|
|
129
148
|
"description": "Base template to extend.",
|
|
130
149
|
"type": "string",
|
|
131
|
-
"enum": [
|
|
150
|
+
"enum": [
|
|
151
|
+
"markdown",
|
|
152
|
+
"asciidoc",
|
|
153
|
+
"html"
|
|
154
|
+
]
|
|
132
155
|
},
|
|
133
156
|
"extensions": {
|
|
134
157
|
"description": "File extensions to use with type.",
|
|
@@ -145,15 +168,19 @@
|
|
|
145
168
|
"description": "Markup definitions for the file type.",
|
|
146
169
|
"type": "array",
|
|
147
170
|
"minItems": 1,
|
|
148
|
-
"items": {
|
|
171
|
+
"items": {
|
|
172
|
+
"$ref": "#/components/schemas/markupDefinition"
|
|
173
|
+
}
|
|
149
174
|
}
|
|
150
175
|
}
|
|
151
176
|
},
|
|
152
177
|
{
|
|
153
|
-
"title": "
|
|
178
|
+
"title": "File type (executable)",
|
|
154
179
|
"$comment": "Executable mode: Convert executable inputs directly into tests.",
|
|
155
180
|
"type": "object",
|
|
156
|
-
"required": [
|
|
181
|
+
"required": [
|
|
182
|
+
"extensions"
|
|
183
|
+
],
|
|
157
184
|
"properties": {
|
|
158
185
|
"extensions": {
|
|
159
186
|
"description": "File extensions to use with type.",
|
|
@@ -186,7 +213,8 @@
|
|
|
186
213
|
"openApi": {
|
|
187
214
|
"$ref": "test_v3.schema.json#/properties/openApi"
|
|
188
215
|
}
|
|
189
|
-
}
|
|
216
|
+
},
|
|
217
|
+
"title": "Integrations options"
|
|
190
218
|
},
|
|
191
219
|
"telemetry": {
|
|
192
220
|
"description": "Options around sending telemetry for Doc Detective usage.",
|
|
@@ -203,10 +231,13 @@
|
|
|
203
231
|
"type": "string"
|
|
204
232
|
}
|
|
205
233
|
},
|
|
206
|
-
"required": [
|
|
234
|
+
"required": [
|
|
235
|
+
"send"
|
|
236
|
+
],
|
|
207
237
|
"default": {
|
|
208
238
|
"send": true
|
|
209
|
-
}
|
|
239
|
+
},
|
|
240
|
+
"title": "Telemetry options"
|
|
210
241
|
},
|
|
211
242
|
"environment": {
|
|
212
243
|
"$ref": "#/components/schemas/environment"
|
|
@@ -217,9 +248,11 @@
|
|
|
217
248
|
"environment": {
|
|
218
249
|
"type": "object",
|
|
219
250
|
"description": "Environment information for the system running Doc Detective.",
|
|
220
|
-
"
|
|
251
|
+
"readOnly": true,
|
|
221
252
|
"additionalProperties": false,
|
|
222
|
-
"required": [
|
|
253
|
+
"required": [
|
|
254
|
+
"platform"
|
|
255
|
+
],
|
|
223
256
|
"properties": {
|
|
224
257
|
"workingDirectory": {
|
|
225
258
|
"description": "The current working directory of the process running Doc Detective.",
|
|
@@ -244,7 +277,8 @@
|
|
|
244
277
|
"x64"
|
|
245
278
|
]
|
|
246
279
|
}
|
|
247
|
-
}
|
|
280
|
+
},
|
|
281
|
+
"title": "Environment details"
|
|
248
282
|
},
|
|
249
283
|
"markupDefinition": {
|
|
250
284
|
"type": "object",
|
|
@@ -279,13 +313,16 @@
|
|
|
279
313
|
{
|
|
280
314
|
"$ref": "#/components/schemas/markupActionString"
|
|
281
315
|
},
|
|
282
|
-
{
|
|
316
|
+
{
|
|
317
|
+
"$ref": "step_v3.schema.json#"
|
|
318
|
+
}
|
|
283
319
|
]
|
|
284
320
|
}
|
|
285
321
|
}
|
|
286
322
|
]
|
|
287
323
|
}
|
|
288
|
-
}
|
|
324
|
+
},
|
|
325
|
+
"title": "Markup definition"
|
|
289
326
|
},
|
|
290
327
|
"markupActionString": {
|
|
291
328
|
"type": "string",
|
|
@@ -349,7 +386,8 @@
|
|
|
349
386
|
}
|
|
350
387
|
]
|
|
351
388
|
}
|
|
352
|
-
}
|
|
389
|
+
},
|
|
390
|
+
"title": "Inline statement definition"
|
|
353
391
|
},
|
|
354
392
|
"stringOrArray": {
|
|
355
393
|
"anyOf": [
|
|
@@ -374,13 +412,19 @@
|
|
|
374
412
|
"output": ".",
|
|
375
413
|
"recursive": true,
|
|
376
414
|
"loadVariables": ".env",
|
|
377
|
-
"fileTypes": [
|
|
415
|
+
"fileTypes": [
|
|
416
|
+
"markdown"
|
|
417
|
+
]
|
|
378
418
|
},
|
|
379
419
|
{
|
|
380
420
|
"fileTypes": [
|
|
381
421
|
{
|
|
382
422
|
"extends": "markdown",
|
|
383
|
-
"extensions": [
|
|
423
|
+
"extensions": [
|
|
424
|
+
"md",
|
|
425
|
+
"markdown",
|
|
426
|
+
"mdx"
|
|
427
|
+
],
|
|
384
428
|
"inlineStatements": {
|
|
385
429
|
"testStart": "<!--\\s*testStart\\s*(.*?)\\s*-->",
|
|
386
430
|
"testEnd": "<!-- testEnd -->",
|
|
@@ -438,4 +482,4 @@
|
|
|
438
482
|
}
|
|
439
483
|
}
|
|
440
484
|
]
|
|
441
|
-
}
|
|
485
|
+
}
|
|
@@ -39,8 +39,12 @@
|
|
|
39
39
|
"type": "array",
|
|
40
40
|
"items": {
|
|
41
41
|
"anyOf": [
|
|
42
|
-
{
|
|
43
|
-
|
|
42
|
+
{
|
|
43
|
+
"$ref": "#/components/schemas/browserName"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"$ref": "#/components/schemas/browser"
|
|
47
|
+
}
|
|
44
48
|
]
|
|
45
49
|
}
|
|
46
50
|
}
|
|
@@ -51,18 +55,29 @@
|
|
|
51
55
|
"schemas": {
|
|
52
56
|
"platform": {
|
|
53
57
|
"type": "string",
|
|
54
|
-
"enum": [
|
|
58
|
+
"enum": [
|
|
59
|
+
"linux",
|
|
60
|
+
"mac",
|
|
61
|
+
"windows"
|
|
62
|
+
]
|
|
55
63
|
},
|
|
56
64
|
"browserName": {
|
|
57
65
|
"type": "string",
|
|
58
66
|
"description": "Name of the browser.",
|
|
59
|
-
"enum": [
|
|
67
|
+
"enum": [
|
|
68
|
+
"chrome",
|
|
69
|
+
"firefox",
|
|
70
|
+
"safari",
|
|
71
|
+
"webkit"
|
|
72
|
+
],
|
|
60
73
|
"$comment": "`safari` is just a shortcut for `webkit`. Included for visibility and to reduce questions."
|
|
61
74
|
},
|
|
62
75
|
"browser": {
|
|
63
76
|
"type": "object",
|
|
64
77
|
"description": "Browser configuration.",
|
|
65
|
-
"required": [
|
|
78
|
+
"required": [
|
|
79
|
+
"name"
|
|
80
|
+
],
|
|
66
81
|
"additionalProperties": false,
|
|
67
82
|
"properties": {
|
|
68
83
|
"name": {
|
|
@@ -86,7 +101,8 @@
|
|
|
86
101
|
"type": "integer",
|
|
87
102
|
"description": "Height of the browser window in pixels."
|
|
88
103
|
}
|
|
89
|
-
}
|
|
104
|
+
},
|
|
105
|
+
"title": "Browser Window"
|
|
90
106
|
},
|
|
91
107
|
"viewport": {
|
|
92
108
|
"type": "object",
|
|
@@ -101,9 +117,11 @@
|
|
|
101
117
|
"type": "integer",
|
|
102
118
|
"description": "Height of the viewport in pixels."
|
|
103
119
|
}
|
|
104
|
-
}
|
|
120
|
+
},
|
|
121
|
+
"title": "Browser Viewport"
|
|
105
122
|
}
|
|
106
|
-
}
|
|
123
|
+
},
|
|
124
|
+
"title": "Browser"
|
|
107
125
|
}
|
|
108
126
|
}
|
|
109
127
|
},
|
|
@@ -113,8 +131,16 @@
|
|
|
113
131
|
"browsers": "chrome"
|
|
114
132
|
},
|
|
115
133
|
{
|
|
116
|
-
"platforms": [
|
|
117
|
-
|
|
134
|
+
"platforms": [
|
|
135
|
+
"windows",
|
|
136
|
+
"mac",
|
|
137
|
+
"linux"
|
|
138
|
+
],
|
|
139
|
+
"browsers": [
|
|
140
|
+
"chrome",
|
|
141
|
+
"firefox",
|
|
142
|
+
"webkit"
|
|
143
|
+
]
|
|
118
144
|
},
|
|
119
145
|
{
|
|
120
146
|
"browsers": {
|
|
@@ -134,14 +160,21 @@
|
|
|
134
160
|
]
|
|
135
161
|
},
|
|
136
162
|
{
|
|
137
|
-
"platforms": [
|
|
163
|
+
"platforms": [
|
|
164
|
+
"mac",
|
|
165
|
+
"linux"
|
|
166
|
+
],
|
|
138
167
|
"browsers": {
|
|
139
168
|
"name": "chrome",
|
|
140
169
|
"headless": true
|
|
141
170
|
}
|
|
142
171
|
},
|
|
143
172
|
{
|
|
144
|
-
"platforms": [
|
|
173
|
+
"platforms": [
|
|
174
|
+
"windows",
|
|
175
|
+
"mac",
|
|
176
|
+
"linux"
|
|
177
|
+
],
|
|
145
178
|
"browsers": [
|
|
146
179
|
{
|
|
147
180
|
"name": "chrome",
|
|
@@ -185,4 +218,4 @@
|
|
|
185
218
|
]
|
|
186
219
|
}
|
|
187
220
|
]
|
|
188
|
-
}
|
|
221
|
+
}
|
|
@@ -22,10 +22,14 @@
|
|
|
22
22
|
"type": "object",
|
|
23
23
|
"anyOf": [
|
|
24
24
|
{
|
|
25
|
-
"required": [
|
|
25
|
+
"required": [
|
|
26
|
+
"selector"
|
|
27
|
+
]
|
|
26
28
|
},
|
|
27
29
|
{
|
|
28
|
-
"required": [
|
|
30
|
+
"required": [
|
|
31
|
+
"elementText"
|
|
32
|
+
]
|
|
29
33
|
}
|
|
30
34
|
],
|
|
31
35
|
"additionalProperties": false,
|
|
@@ -60,7 +64,8 @@
|
|
|
60
64
|
"button": {
|
|
61
65
|
"$ref": "click_v3.schema.json#/components/schemas/button"
|
|
62
66
|
}
|
|
63
|
-
}
|
|
67
|
+
},
|
|
68
|
+
"title": "Find element and click"
|
|
64
69
|
}
|
|
65
70
|
]
|
|
66
71
|
},
|
|
@@ -73,7 +78,11 @@
|
|
|
73
78
|
{
|
|
74
79
|
"not": {
|
|
75
80
|
"type": "object",
|
|
76
|
-
"required": [
|
|
81
|
+
"required": [
|
|
82
|
+
"selector",
|
|
83
|
+
"elementText"
|
|
84
|
+
],
|
|
85
|
+
"title": "Find element and type"
|
|
77
86
|
}
|
|
78
87
|
}
|
|
79
88
|
]
|
|
@@ -108,9 +117,11 @@
|
|
|
108
117
|
"moveTo": true,
|
|
109
118
|
"click": true,
|
|
110
119
|
"type": {
|
|
111
|
-
"keys": [
|
|
120
|
+
"keys": [
|
|
121
|
+
"shorthair cat"
|
|
122
|
+
],
|
|
112
123
|
"inputDelay": 100
|
|
113
124
|
}
|
|
114
125
|
}
|
|
115
126
|
]
|
|
116
|
-
}
|
|
127
|
+
}
|
|
@@ -12,29 +12,39 @@
|
|
|
12
12
|
"components": {
|
|
13
13
|
"schemas": {
|
|
14
14
|
"string": {
|
|
15
|
+
"title": "Go to URL (simple)",
|
|
15
16
|
"description": "Navigate to an HTTP or HTTPS URL. Can be a full URL or a path. If a path is provided, navigates relative to the current URL, if any.",
|
|
16
17
|
"type": "string",
|
|
17
|
-
"pattern": "(^(http://|https
|
|
18
|
-
"transform": [
|
|
18
|
+
"pattern": "(^(http://|https://|/).*|\\$[A-Za-z0-9_]+)",
|
|
19
|
+
"transform": [
|
|
20
|
+
"trim"
|
|
21
|
+
]
|
|
19
22
|
},
|
|
20
23
|
"object": {
|
|
21
24
|
"description": "Navigate to an HTTP or HTTPS URL.",
|
|
22
25
|
"type": "object",
|
|
23
26
|
"additionalProperties": false,
|
|
24
|
-
"required": [
|
|
27
|
+
"required": [
|
|
28
|
+
"url"
|
|
29
|
+
],
|
|
25
30
|
"properties": {
|
|
26
31
|
"url": {
|
|
27
32
|
"type": "string",
|
|
28
33
|
"description": "URL to navigate to. Can be a full URL or a path. If a path is provided and `origin` is specified, prepends `origin` to `url`. If a path is provided but `origin` isn't specified, attempts to navigate relative to the current URL, if any.",
|
|
29
34
|
"pattern": "(^(http://|https://|/).*|\\$[A-Za-z0-9_]+)",
|
|
30
|
-
"transform": [
|
|
35
|
+
"transform": [
|
|
36
|
+
"trim"
|
|
37
|
+
]
|
|
31
38
|
},
|
|
32
39
|
"origin": {
|
|
33
40
|
"type": "string",
|
|
34
41
|
"description": "Protocol and domain to navigate to. Prepended to `url`.",
|
|
35
|
-
"transform": [
|
|
42
|
+
"transform": [
|
|
43
|
+
"trim"
|
|
44
|
+
]
|
|
36
45
|
}
|
|
37
|
-
}
|
|
46
|
+
},
|
|
47
|
+
"title": "Go to URL (detailed)"
|
|
38
48
|
}
|
|
39
49
|
}
|
|
40
50
|
},
|
|
@@ -49,4 +59,4 @@
|
|
|
49
59
|
"origin": "www.google.com"
|
|
50
60
|
}
|
|
51
61
|
]
|
|
52
|
-
}
|
|
62
|
+
}
|