doc-detective-common 3.3.0 → 3.4.0-dita.0
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/dist/schemas/config_v3.schema.json +9 -2
- package/dist/schemas/resolvedTests_v3.schema.json +9 -2
- package/package.json +6 -6
- package/src/schemas/build/checkLink_v2.schema.json +1 -1
- package/src/schemas/build/checkLink_v3.schema.json +1 -1
- package/src/schemas/build/click_v3.schema.json +1 -1
- package/src/schemas/build/config_v2.schema.json +14 -14
- package/src/schemas/build/config_v3.schema.json +15 -8
- package/src/schemas/build/context_v2.schema.json +1 -1
- package/src/schemas/build/context_v3.schema.json +1 -1
- package/src/schemas/build/dragAndDrop_v3.schema.json +1 -1
- package/src/schemas/build/find_v2.schema.json +3 -3
- package/src/schemas/build/find_v3.schema.json +4 -4
- package/src/schemas/build/goTo_v2.schema.json +1 -1
- package/src/schemas/build/goTo_v3.schema.json +1 -1
- package/src/schemas/build/httpRequest_v2.schema.json +2 -2
- package/src/schemas/build/httpRequest_v3.schema.json +3 -3
- package/src/schemas/build/loadCookie_v3.schema.json +1 -1
- package/src/schemas/build/loadCookies_v3.schema.json +156 -0
- package/src/schemas/build/loadVariables_v3.schema.json +1 -1
- package/src/schemas/build/moveTo_v2.schema.json +1 -1
- package/src/schemas/build/openApi_v2.schema.json +1 -1
- package/src/schemas/build/openApi_v3.schema.json +1 -1
- package/src/schemas/build/record_v3.schema.json +1 -1
- package/src/schemas/build/report_v3.schema.json +5 -5
- package/src/schemas/build/resolvedTests_v3.schema.json +3 -3
- package/src/schemas/build/runCode_v2.schema.json +1 -1
- package/src/schemas/build/runCode_v3.schema.json +1 -1
- package/src/schemas/build/runShell_v2.schema.json +1 -1
- package/src/schemas/build/runShell_v3.schema.json +1 -1
- package/src/schemas/build/saveCookie_v3.schema.json +1 -1
- package/src/schemas/build/saveCookies_v3.schema.json +176 -0
- package/src/schemas/build/saveScreenshot_v2.schema.json +1 -1
- package/src/schemas/build/screenshot_v3.schema.json +1 -1
- package/src/schemas/build/setVariables_v2.schema.json +1 -1
- package/src/schemas/build/spec_v2.schema.json +4 -4
- package/src/schemas/build/spec_v3.schema.json +4 -4
- package/src/schemas/build/startRecording_v2.schema.json +1 -1
- package/src/schemas/build/step_v3.schema.json +38 -38
- package/src/schemas/build/stopRecord_v3.schema.json +1 -1
- package/src/schemas/build/stopRecording_v2.schema.json +1 -1
- package/src/schemas/build/test_v2.schema.json +15 -15
- package/src/schemas/build/test_v3.schema.json +6 -6
- package/src/schemas/build/typeKeys_v2.schema.json +1 -1
- package/src/schemas/build/type_v3.schema.json +1 -1
- package/src/schemas/build/wait_v2.schema.json +1 -1
- package/src/schemas/build/wait_v3.schema.json +1 -1
- package/src/schemas/output_schemas/config_v3.schema.json +9 -2
- package/src/schemas/output_schemas/resolvedTests_v3.schema.json +9 -2
- package/src/schemas/schemas.json +18 -4
- package/src/schemas/src_schemas/config_v3.schema.json +7 -2
|
@@ -121,6 +121,11 @@
|
|
|
121
121
|
"type": "boolean",
|
|
122
122
|
"description": "Whether or not to run potentially unsafe steps, such as those that might modify files or system state."
|
|
123
123
|
},
|
|
124
|
+
"processDitaMaps": {
|
|
125
|
+
"description": "If `true`, processes DITA maps and includes generated files as inputs.",
|
|
126
|
+
"type": "boolean",
|
|
127
|
+
"default": true
|
|
128
|
+
},
|
|
124
129
|
"logLevel": {
|
|
125
130
|
"description": "Amount of detail to output when performing an operation.",
|
|
126
131
|
"type": "string",
|
|
@@ -520,7 +525,8 @@
|
|
|
520
525
|
"default": [
|
|
521
526
|
"markdown",
|
|
522
527
|
"asciidoc",
|
|
523
|
-
"html"
|
|
528
|
+
"html",
|
|
529
|
+
"dita"
|
|
524
530
|
],
|
|
525
531
|
"anyOf": [
|
|
526
532
|
{
|
|
@@ -535,7 +541,8 @@
|
|
|
535
541
|
"enum": [
|
|
536
542
|
"markdown",
|
|
537
543
|
"asciidoc",
|
|
538
|
-
"html"
|
|
544
|
+
"html",
|
|
545
|
+
"dita"
|
|
539
546
|
]
|
|
540
547
|
},
|
|
541
548
|
{
|
|
@@ -134,6 +134,11 @@
|
|
|
134
134
|
"type": "boolean",
|
|
135
135
|
"description": "Whether or not to run potentially unsafe steps, such as those that might modify files or system state."
|
|
136
136
|
},
|
|
137
|
+
"processDitaMaps": {
|
|
138
|
+
"description": "If `true`, processes DITA maps and includes generated files as inputs.",
|
|
139
|
+
"type": "boolean",
|
|
140
|
+
"default": true
|
|
141
|
+
},
|
|
137
142
|
"logLevel": {
|
|
138
143
|
"description": "Amount of detail to output when performing an operation.",
|
|
139
144
|
"type": "string",
|
|
@@ -533,7 +538,8 @@
|
|
|
533
538
|
"default": [
|
|
534
539
|
"markdown",
|
|
535
540
|
"asciidoc",
|
|
536
|
-
"html"
|
|
541
|
+
"html",
|
|
542
|
+
"dita"
|
|
537
543
|
],
|
|
538
544
|
"anyOf": [
|
|
539
545
|
{
|
|
@@ -548,7 +554,8 @@
|
|
|
548
554
|
"enum": [
|
|
549
555
|
"markdown",
|
|
550
556
|
"asciidoc",
|
|
551
|
-
"html"
|
|
557
|
+
"html",
|
|
558
|
+
"dita"
|
|
552
559
|
]
|
|
553
560
|
},
|
|
554
561
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "doc-detective-common",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.0-dita.0",
|
|
4
4
|
"description": "Shared components for Doc Detective projects.",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -20,18 +20,18 @@
|
|
|
20
20
|
},
|
|
21
21
|
"homepage": "https://github.com/doc-detective/doc-detective-common#readme",
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"chai": "^
|
|
24
|
-
"mocha": "^11.7.
|
|
23
|
+
"chai": "^6.2.0",
|
|
24
|
+
"mocha": "^11.7.4",
|
|
25
25
|
"sinon": "^21.0.0"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@apidevtools/json-schema-ref-parser": "^14.2.
|
|
28
|
+
"@apidevtools/json-schema-ref-parser": "^14.2.1",
|
|
29
29
|
"ajv": "^8.17.1",
|
|
30
30
|
"ajv-errors": "^3.0.0",
|
|
31
31
|
"ajv-formats": "^3.0.1",
|
|
32
32
|
"ajv-keywords": "^5.1.0",
|
|
33
|
-
"axios": "^1.
|
|
34
|
-
"uuid": "^
|
|
33
|
+
"axios": "^1.12.2",
|
|
34
|
+
"uuid": "^13.0.0",
|
|
35
35
|
"yaml": "^2.8.1"
|
|
36
36
|
}
|
|
37
37
|
}
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"items": {
|
|
109
109
|
"oneOf": [
|
|
110
110
|
{
|
|
111
|
-
"$ref": "/home/
|
|
111
|
+
"$ref": "/home/hawkeyexl/Workspaces/common/src/schemas/build/context_v2.schema.json#"
|
|
112
112
|
}
|
|
113
113
|
]
|
|
114
114
|
},
|
|
@@ -314,37 +314,37 @@
|
|
|
314
314
|
]
|
|
315
315
|
},
|
|
316
316
|
{
|
|
317
|
-
"$ref": "/home/
|
|
317
|
+
"$ref": "/home/hawkeyexl/Workspaces/common/src/schemas/build/checkLink_v2.schema.json#"
|
|
318
318
|
},
|
|
319
319
|
{
|
|
320
|
-
"$ref": "/home/
|
|
320
|
+
"$ref": "/home/hawkeyexl/Workspaces/common/src/schemas/build/find_v2.schema.json#"
|
|
321
321
|
},
|
|
322
322
|
{
|
|
323
|
-
"$ref": "/home/
|
|
323
|
+
"$ref": "/home/hawkeyexl/Workspaces/common/src/schemas/build/goTo_v2.schema.json#"
|
|
324
324
|
},
|
|
325
325
|
{
|
|
326
|
-
"$ref": "/home/
|
|
326
|
+
"$ref": "/home/hawkeyexl/Workspaces/common/src/schemas/build/httpRequest_v2.schema.json#"
|
|
327
327
|
},
|
|
328
328
|
{
|
|
329
|
-
"$ref": "/home/
|
|
329
|
+
"$ref": "/home/hawkeyexl/Workspaces/common/src/schemas/build/runShell_v2.schema.json#"
|
|
330
330
|
},
|
|
331
331
|
{
|
|
332
|
-
"$ref": "/home/
|
|
332
|
+
"$ref": "/home/hawkeyexl/Workspaces/common/src/schemas/build/saveScreenshot_v2.schema.json#"
|
|
333
333
|
},
|
|
334
334
|
{
|
|
335
|
-
"$ref": "/home/
|
|
335
|
+
"$ref": "/home/hawkeyexl/Workspaces/common/src/schemas/build/setVariables_v2.schema.json#"
|
|
336
336
|
},
|
|
337
337
|
{
|
|
338
|
-
"$ref": "/home/
|
|
338
|
+
"$ref": "/home/hawkeyexl/Workspaces/common/src/schemas/build/startRecording_v2.schema.json#"
|
|
339
339
|
},
|
|
340
340
|
{
|
|
341
|
-
"$ref": "/home/
|
|
341
|
+
"$ref": "/home/hawkeyexl/Workspaces/common/src/schemas/build/stopRecording_v2.schema.json#"
|
|
342
342
|
},
|
|
343
343
|
{
|
|
344
|
-
"$ref": "/home/
|
|
344
|
+
"$ref": "/home/hawkeyexl/Workspaces/common/src/schemas/build/typeKeys_v2.schema.json#"
|
|
345
345
|
},
|
|
346
346
|
{
|
|
347
|
-
"$ref": "/home/
|
|
347
|
+
"$ref": "/home/hawkeyexl/Workspaces/common/src/schemas/build/wait_v2.schema.json#"
|
|
348
348
|
}
|
|
349
349
|
]
|
|
350
350
|
}
|
|
@@ -541,7 +541,7 @@
|
|
|
541
541
|
"items": {
|
|
542
542
|
"allOf": [
|
|
543
543
|
{
|
|
544
|
-
"$ref": "/home/
|
|
544
|
+
"$ref": "/home/hawkeyexl/Workspaces/common/src/schemas/build/openApi_v2.schema.json#"
|
|
545
545
|
},
|
|
546
546
|
{
|
|
547
547
|
"type": "object",
|
|
@@ -1075,5 +1075,5 @@
|
|
|
1075
1075
|
}
|
|
1076
1076
|
}
|
|
1077
1077
|
],
|
|
1078
|
-
"$id": "/home/
|
|
1078
|
+
"$id": "/home/hawkeyexl/Workspaces/common/src/schemas/src_schemas/config_v2.schema.json"
|
|
1079
1079
|
}
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"default": "file"
|
|
54
54
|
},
|
|
55
55
|
"loadVariables": {
|
|
56
|
-
"$ref": "/home/
|
|
56
|
+
"$ref": "/home/hawkeyexl/Workspaces/common/src/schemas/build/loadVariables_v3.schema.json#"
|
|
57
57
|
},
|
|
58
58
|
"origin": {
|
|
59
59
|
"description": "Default protocol and domain to use for relative URLs.",
|
|
@@ -104,6 +104,11 @@
|
|
|
104
104
|
"type": "boolean",
|
|
105
105
|
"description": "Whether or not to run potentially unsafe steps, such as those that might modify files or system state."
|
|
106
106
|
},
|
|
107
|
+
"processDitaMaps": {
|
|
108
|
+
"description": "If `true`, processes DITA maps and includes generated files as inputs.",
|
|
109
|
+
"type": "boolean",
|
|
110
|
+
"default": true
|
|
111
|
+
},
|
|
107
112
|
"logLevel": {
|
|
108
113
|
"description": "Amount of detail to output when performing an operation.",
|
|
109
114
|
"type": "string",
|
|
@@ -117,14 +122,15 @@
|
|
|
117
122
|
"default": "info"
|
|
118
123
|
},
|
|
119
124
|
"runOn": {
|
|
120
|
-
"$ref": "/home/
|
|
125
|
+
"$ref": "/home/hawkeyexl/Workspaces/common/src/schemas/build/test_v3.schema.json#/properties/runOn"
|
|
121
126
|
},
|
|
122
127
|
"fileTypes": {
|
|
123
128
|
"description": "Configuration for file types and their markup detection.",
|
|
124
129
|
"default": [
|
|
125
130
|
"markdown",
|
|
126
131
|
"asciidoc",
|
|
127
|
-
"html"
|
|
132
|
+
"html",
|
|
133
|
+
"dita"
|
|
128
134
|
],
|
|
129
135
|
"anyOf": [
|
|
130
136
|
{
|
|
@@ -139,7 +145,8 @@
|
|
|
139
145
|
"enum": [
|
|
140
146
|
"markdown",
|
|
141
147
|
"asciidoc",
|
|
142
|
-
"html"
|
|
148
|
+
"html",
|
|
149
|
+
"dita"
|
|
143
150
|
]
|
|
144
151
|
},
|
|
145
152
|
{
|
|
@@ -213,7 +220,7 @@
|
|
|
213
220
|
"description": "`runShell` step to perform for this file type. Use $1 as a placeholder for the file path.",
|
|
214
221
|
"anyOf": [
|
|
215
222
|
{
|
|
216
|
-
"$ref": "/home/
|
|
223
|
+
"$ref": "/home/hawkeyexl/Workspaces/common/src/schemas/build/runShell_v3.schema.json#"
|
|
217
224
|
}
|
|
218
225
|
]
|
|
219
226
|
}
|
|
@@ -230,7 +237,7 @@
|
|
|
230
237
|
"additionalProperties": false,
|
|
231
238
|
"properties": {
|
|
232
239
|
"openApi": {
|
|
233
|
-
"$ref": "/home/
|
|
240
|
+
"$ref": "/home/hawkeyexl/Workspaces/common/src/schemas/build/test_v3.schema.json#/properties/openApi"
|
|
234
241
|
}
|
|
235
242
|
},
|
|
236
243
|
"title": "Integrations options"
|
|
@@ -360,7 +367,7 @@
|
|
|
360
367
|
"$ref": "#/components/schemas/markupActionString"
|
|
361
368
|
},
|
|
362
369
|
{
|
|
363
|
-
"$ref": "/home/
|
|
370
|
+
"$ref": "/home/hawkeyexl/Workspaces/common/src/schemas/build/step_v3.schema.json#"
|
|
364
371
|
}
|
|
365
372
|
]
|
|
366
373
|
}
|
|
@@ -548,5 +555,5 @@
|
|
|
548
555
|
"debug": "stepThrough"
|
|
549
556
|
}
|
|
550
557
|
],
|
|
551
|
-
"$id": "/home/
|
|
558
|
+
"$id": "/home/hawkeyexl/Workspaces/common/src/schemas/src_schemas/config_v3.schema.json"
|
|
552
559
|
}
|
|
@@ -73,10 +73,10 @@
|
|
|
73
73
|
"additionalProperties": false,
|
|
74
74
|
"properties": {
|
|
75
75
|
"keys": {
|
|
76
|
-
"$ref": "/home/
|
|
76
|
+
"$ref": "/home/hawkeyexl/Workspaces/common/src/schemas/build/typeKeys_v2.schema.json#/properties/keys"
|
|
77
77
|
},
|
|
78
78
|
"delay": {
|
|
79
|
-
"$ref": "/home/
|
|
79
|
+
"$ref": "/home/hawkeyexl/Workspaces/common/src/schemas/build/typeKeys_v2.schema.json#/properties/delay"
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
}
|
|
@@ -164,5 +164,5 @@
|
|
|
164
164
|
]
|
|
165
165
|
}
|
|
166
166
|
],
|
|
167
|
-
"$id": "/home/
|
|
167
|
+
"$id": "/home/hawkeyexl/Workspaces/common/src/schemas/src_schemas/find_v2.schema.json"
|
|
168
168
|
}
|
|
@@ -56,13 +56,13 @@
|
|
|
56
56
|
"description": "Click the element.",
|
|
57
57
|
"anyOf": [
|
|
58
58
|
{
|
|
59
|
-
"$ref": "/home/
|
|
59
|
+
"$ref": "/home/hawkeyexl/Workspaces/common/src/schemas/build/click_v3.schema.json#"
|
|
60
60
|
},
|
|
61
61
|
{
|
|
62
62
|
"type": "object",
|
|
63
63
|
"properties": {
|
|
64
64
|
"button": {
|
|
65
|
-
"$ref": "/home/
|
|
65
|
+
"$ref": "/home/hawkeyexl/Workspaces/common/src/schemas/build/click_v3.schema.json#/components/schemas/button"
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
68
|
"title": "Find element and click"
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"description": "Type keys after finding the element. Either a string or an object with a `keys` field as defined in [`type`](type). To type in the element, make the element active with the `click` parameter.",
|
|
74
74
|
"allOf": [
|
|
75
75
|
{
|
|
76
|
-
"$ref": "/home/
|
|
76
|
+
"$ref": "/home/hawkeyexl/Workspaces/common/src/schemas/build/type_v3.schema.json#"
|
|
77
77
|
},
|
|
78
78
|
{
|
|
79
79
|
"not": {
|
|
@@ -124,5 +124,5 @@
|
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
],
|
|
127
|
-
"$id": "/home/
|
|
127
|
+
"$id": "/home/hawkeyexl/Workspaces/common/src/schemas/src_schemas/find_v3.schema.json"
|
|
128
128
|
}
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"openApi": {
|
|
28
28
|
"allOf": [
|
|
29
29
|
{
|
|
30
|
-
"$ref": "/home/
|
|
30
|
+
"$ref": "/home/hawkeyexl/Workspaces/common/src/schemas/build/openApi_v2.schema.json#"
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
"type": "object",
|
|
@@ -317,5 +317,5 @@
|
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
],
|
|
320
|
-
"$id": "/home/
|
|
320
|
+
"$id": "/home/hawkeyexl/Workspaces/common/src/schemas/src_schemas/httpRequest_v2.schema.json"
|
|
321
321
|
}
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
{
|
|
47
47
|
"allOf": [
|
|
48
48
|
{
|
|
49
|
-
"$ref": "/home/
|
|
49
|
+
"$ref": "/home/hawkeyexl/Workspaces/common/src/schemas/build/openApi_v3.schema.json#/components/schemas/operationId"
|
|
50
50
|
},
|
|
51
51
|
{
|
|
52
52
|
"title": "Operation ID",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
{
|
|
58
58
|
"allOf": [
|
|
59
59
|
{
|
|
60
|
-
"$ref": "/home/
|
|
60
|
+
"$ref": "/home/hawkeyexl/Workspaces/common/src/schemas/build/openApi_v3.schema.json#"
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
63
|
"type": "object",
|
|
@@ -381,5 +381,5 @@
|
|
|
381
381
|
}
|
|
382
382
|
}
|
|
383
383
|
],
|
|
384
|
-
"$id": "/home/
|
|
384
|
+
"$id": "/home/hawkeyexl/Workspaces/common/src/schemas/src_schemas/httpRequest_v3.schema.json"
|
|
385
385
|
}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "loadCookies",
|
|
4
|
+
"description": "Load cookies from a file or environment variable into the browser.",
|
|
5
|
+
"anyOf": [
|
|
6
|
+
{
|
|
7
|
+
"$ref": "#/components/schemas/string"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"$ref": "#/components/schemas/object"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"components": {
|
|
14
|
+
"schemas": {
|
|
15
|
+
"string": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"title": "Environment variable or file path",
|
|
18
|
+
"description": "Environment variable name containing cookies as JSON string, or file path to cookie file.",
|
|
19
|
+
"transform": [
|
|
20
|
+
"trim"
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
"object": {
|
|
24
|
+
"type": "object",
|
|
25
|
+
"additionalProperties": false,
|
|
26
|
+
"properties": {
|
|
27
|
+
"variable": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"title": "Environment variable name",
|
|
30
|
+
"description": "Environment variable name containing cookies as JSON string.",
|
|
31
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_]*$",
|
|
32
|
+
"transform": [
|
|
33
|
+
"trim"
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
"path": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"title": "Cookie file path",
|
|
39
|
+
"description": "File path to cookie file, relative to directory. Supports Netscape cookie format.",
|
|
40
|
+
"transform": [
|
|
41
|
+
"trim"
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
"directory": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"title": "Directory path",
|
|
47
|
+
"description": "Directory containing the cookie file.",
|
|
48
|
+
"transform": [
|
|
49
|
+
"trim"
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
"filter": {
|
|
53
|
+
"type": "object",
|
|
54
|
+
"title": "Cookie filter",
|
|
55
|
+
"description": "Filter criteria to specify which cookies to load from the source.",
|
|
56
|
+
"additionalProperties": false,
|
|
57
|
+
"properties": {
|
|
58
|
+
"names": {
|
|
59
|
+
"type": "array",
|
|
60
|
+
"title": "Cookie names",
|
|
61
|
+
"description": "Array of specific cookie names to include. If specified, only these cookies will be loaded.",
|
|
62
|
+
"items": {
|
|
63
|
+
"type": "string"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"patterns": {
|
|
67
|
+
"type": "array",
|
|
68
|
+
"title": "Cookie name patterns",
|
|
69
|
+
"description": "Array of wildcard patterns (* and ?) or regex patterns to match cookie names.",
|
|
70
|
+
"items": {
|
|
71
|
+
"type": "string"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"domains": {
|
|
75
|
+
"type": "array",
|
|
76
|
+
"title": "Cookie domains",
|
|
77
|
+
"description": "Array of domains to include. Only cookies for these domains will be loaded.",
|
|
78
|
+
"items": {
|
|
79
|
+
"type": "string"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"exclude": {
|
|
83
|
+
"type": "object",
|
|
84
|
+
"title": "Exclusion filters",
|
|
85
|
+
"description": "Cookies matching these criteria will be excluded from loading.",
|
|
86
|
+
"additionalProperties": false,
|
|
87
|
+
"properties": {
|
|
88
|
+
"names": {
|
|
89
|
+
"type": "array",
|
|
90
|
+
"title": "Excluded cookie names",
|
|
91
|
+
"description": "Array of cookie names to exclude.",
|
|
92
|
+
"items": {
|
|
93
|
+
"type": "string"
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"patterns": {
|
|
97
|
+
"type": "array",
|
|
98
|
+
"title": "Excluded patterns",
|
|
99
|
+
"description": "Array of patterns to exclude.",
|
|
100
|
+
"items": {
|
|
101
|
+
"type": "string"
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"title": "Load cookies (detailed)"
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"examples": [
|
|
114
|
+
"AUTH_COOKIES",
|
|
115
|
+
"./test-data/auth-session.txt",
|
|
116
|
+
{
|
|
117
|
+
"variable": "SESSION_COOKIES"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"path": "login-state.txt",
|
|
121
|
+
"directory": "./test-data"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"variable": "ALL_COOKIES",
|
|
125
|
+
"filter": {
|
|
126
|
+
"names": [
|
|
127
|
+
"sessionToken",
|
|
128
|
+
"authToken"
|
|
129
|
+
]
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"path": "saved-cookies.txt",
|
|
134
|
+
"filter": {
|
|
135
|
+
"patterns": [
|
|
136
|
+
"*auth*",
|
|
137
|
+
"*session*"
|
|
138
|
+
],
|
|
139
|
+
"exclude": {
|
|
140
|
+
"names": [
|
|
141
|
+
"temp_session"
|
|
142
|
+
]
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"variable": "DOMAIN_COOKIES",
|
|
148
|
+
"filter": {
|
|
149
|
+
"domains": [
|
|
150
|
+
"app.example.com"
|
|
151
|
+
]
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
],
|
|
155
|
+
"$id": "/home/hawkeyexl/Workspaces/common/src/schemas/src_schemas/loadCookies_v3.schema.json"
|
|
156
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "/home/
|
|
2
|
+
"$id": "/home/hawkeyexl/Workspaces/common/src/schemas/src_schemas/openApi_v2.schema.json",
|
|
3
3
|
"version": "1.0.0",
|
|
4
4
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
5
5
|
"title": "openApi",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "/home/
|
|
2
|
+
"$id": "/home/hawkeyexl/Workspaces/common/src/schemas/src_schemas/openApi_v3.schema.json",
|
|
3
3
|
"version": "1.0.0",
|
|
4
4
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
5
5
|
"title": "openApi",
|