doc-detective-common 4.0.0-beta.0-dev.7 → 4.0.0-beta.0-dev.8
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/detectTests.d.ts +17 -22
- package/dist/detectTests.d.ts.map +1 -1
- package/dist/detectTests.js +81 -4
- package/dist/detectTests.js.map +1 -1
- package/dist/fileTypes.d.ts +35 -0
- package/dist/fileTypes.d.ts.map +1 -0
- package/dist/fileTypes.js +293 -0
- package/dist/fileTypes.js.map +1 -0
- package/dist/index.cjs +7288 -162
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/schemas/schemas.json +6786 -0
- package/dist/types/generated/step_v3.d.ts +288 -0
- package/dist/types/generated/step_v3.d.ts.map +1 -1
- package/dist/types/generated/test_v3.d.ts +576 -0
- package/dist/types/generated/test_v3.d.ts.map +1 -1
- package/package.json +4 -3
- package/dist/schemas/checkLink_v3.schema.json +0 -145
- package/dist/schemas/click_v3.schema.json +0 -252
- package/dist/schemas/config_v3.schema.json +0 -16470
- package/dist/schemas/context_v3.schema.json +0 -374
- package/dist/schemas/dragAndDrop_v3.schema.json +0 -496
- package/dist/schemas/find_v3.schema.json +0 -1349
- package/dist/schemas/goTo_v3.schema.json +0 -419
- package/dist/schemas/httpRequest_v3.schema.json +0 -994
- package/dist/schemas/loadCookie_v3.schema.json +0 -228
- package/dist/schemas/loadVariables_v3.schema.json +0 -9
- package/dist/schemas/openApi_v3.schema.json +0 -162
- package/dist/schemas/record_v3.schema.json +0 -101
- package/dist/schemas/report_v3.schema.json +0 -16826
- package/dist/schemas/resolvedTests_v3.schema.json +0 -33331
- package/dist/schemas/runCode_v3.schema.json +0 -222
- package/dist/schemas/runShell_v3.schema.json +0 -236
- package/dist/schemas/saveCookie_v3.schema.json +0 -245
- package/dist/schemas/screenshot_v3.schema.json +0 -681
- package/dist/schemas/sourceIntegration_v3.schema.json +0 -50
- package/dist/schemas/spec_v3.schema.json +0 -16630
- package/dist/schemas/step_v3.schema.json +0 -7317
- package/dist/schemas/stopRecord_v3.schema.json +0 -12
- package/dist/schemas/test_v3.schema.json +0 -15863
- package/dist/schemas/type_v3.schema.json +0 -244
- package/dist/schemas/wait_v3.schema.json +0 -41
|
@@ -1,222 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"title": "runCode",
|
|
4
|
-
"description": "Assemble and run code.",
|
|
5
|
-
"anyOf": [
|
|
6
|
-
{
|
|
7
|
-
"type": "object",
|
|
8
|
-
"required": [
|
|
9
|
-
"code",
|
|
10
|
-
"language"
|
|
11
|
-
],
|
|
12
|
-
"properties": {
|
|
13
|
-
"language": {
|
|
14
|
-
"type": "string",
|
|
15
|
-
"description": "Language of the code to run.",
|
|
16
|
-
"enum": [
|
|
17
|
-
"python",
|
|
18
|
-
"bash",
|
|
19
|
-
"javascript"
|
|
20
|
-
]
|
|
21
|
-
},
|
|
22
|
-
"code": {
|
|
23
|
-
"description": "Code to run.",
|
|
24
|
-
"type": "string"
|
|
25
|
-
},
|
|
26
|
-
"args": {
|
|
27
|
-
"type": "array",
|
|
28
|
-
"description": "Arguments for the command.",
|
|
29
|
-
"items": {
|
|
30
|
-
"anyOf": [
|
|
31
|
-
{
|
|
32
|
-
"type": "string"
|
|
33
|
-
}
|
|
34
|
-
]
|
|
35
|
-
},
|
|
36
|
-
"default": []
|
|
37
|
-
},
|
|
38
|
-
"workingDirectory": {
|
|
39
|
-
"type": "string",
|
|
40
|
-
"description": "Working directory for the command.",
|
|
41
|
-
"default": "."
|
|
42
|
-
},
|
|
43
|
-
"exitCodes": {
|
|
44
|
-
"type": "array",
|
|
45
|
-
"description": "Expected exit codes of the command. If the command's actual exit code isn't in this list, the step fails.",
|
|
46
|
-
"items": {
|
|
47
|
-
"anyOf": [
|
|
48
|
-
{
|
|
49
|
-
"type": "integer"
|
|
50
|
-
}
|
|
51
|
-
]
|
|
52
|
-
},
|
|
53
|
-
"default": [
|
|
54
|
-
0
|
|
55
|
-
]
|
|
56
|
-
},
|
|
57
|
-
"stdio": {
|
|
58
|
-
"type": "string",
|
|
59
|
-
"description": "Content expected in the command's output. If the expected content can't be found in the command's output (either stdout or stderr), the step fails. Supports strings and regular expressions. To use a regular expression, the string must start and end with a forward slash, like in `/^hello-world.*/`."
|
|
60
|
-
},
|
|
61
|
-
"path": {
|
|
62
|
-
"type": "string",
|
|
63
|
-
"description": "File path to save the command's output, relative to `directory`."
|
|
64
|
-
},
|
|
65
|
-
"directory": {
|
|
66
|
-
"type": "string",
|
|
67
|
-
"description": "Directory to save the command's output. If the directory doesn't exist, creates the directory. If not specified, the directory is your media directory."
|
|
68
|
-
},
|
|
69
|
-
"maxVariation": {
|
|
70
|
-
"type": "number",
|
|
71
|
-
"description": "Allowed variation as a fraction (0 to 1) of text different between the current output and previously saved output. For example, 0.1 means 10%. If the difference between the current output and the previous output is greater than `maxVariation`, the step fails. If output doesn't exist at `path`, this value is ignored.",
|
|
72
|
-
"default": 0,
|
|
73
|
-
"minimum": 0,
|
|
74
|
-
"maximum": 1
|
|
75
|
-
},
|
|
76
|
-
"overwrite": {
|
|
77
|
-
"type": "string",
|
|
78
|
-
"description": "If `true`, overwrites the existing output at `path` if it exists.\nIf `aboveVariation`, overwrites the existing output at `path` if the difference between the new output and the existing output is greater than `maxVariation`.",
|
|
79
|
-
"enum": [
|
|
80
|
-
"true",
|
|
81
|
-
"false",
|
|
82
|
-
"aboveVariation"
|
|
83
|
-
],
|
|
84
|
-
"default": "aboveVariation"
|
|
85
|
-
},
|
|
86
|
-
"timeout": {
|
|
87
|
-
"type": "integer",
|
|
88
|
-
"description": "Max time in milliseconds the command is allowed to run. If the command runs longer than this, the step fails.",
|
|
89
|
-
"default": 60000
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
"title": "Run code (detailed)"
|
|
93
|
-
}
|
|
94
|
-
],
|
|
95
|
-
"components": {
|
|
96
|
-
"schemas": {
|
|
97
|
-
"object": {
|
|
98
|
-
"type": "object",
|
|
99
|
-
"required": [
|
|
100
|
-
"code",
|
|
101
|
-
"language"
|
|
102
|
-
],
|
|
103
|
-
"properties": {
|
|
104
|
-
"language": {
|
|
105
|
-
"type": "string",
|
|
106
|
-
"description": "Language of the code to run.",
|
|
107
|
-
"enum": [
|
|
108
|
-
"python",
|
|
109
|
-
"bash",
|
|
110
|
-
"javascript"
|
|
111
|
-
]
|
|
112
|
-
},
|
|
113
|
-
"code": {
|
|
114
|
-
"description": "Code to run.",
|
|
115
|
-
"type": "string"
|
|
116
|
-
},
|
|
117
|
-
"args": {
|
|
118
|
-
"type": "array",
|
|
119
|
-
"description": "Arguments for the command.",
|
|
120
|
-
"items": {
|
|
121
|
-
"anyOf": [
|
|
122
|
-
{
|
|
123
|
-
"type": "string"
|
|
124
|
-
}
|
|
125
|
-
]
|
|
126
|
-
},
|
|
127
|
-
"default": []
|
|
128
|
-
},
|
|
129
|
-
"workingDirectory": {
|
|
130
|
-
"type": "string",
|
|
131
|
-
"description": "Working directory for the command.",
|
|
132
|
-
"default": "."
|
|
133
|
-
},
|
|
134
|
-
"exitCodes": {
|
|
135
|
-
"type": "array",
|
|
136
|
-
"description": "Expected exit codes of the command. If the command's actual exit code isn't in this list, the step fails.",
|
|
137
|
-
"items": {
|
|
138
|
-
"anyOf": [
|
|
139
|
-
{
|
|
140
|
-
"type": "integer"
|
|
141
|
-
}
|
|
142
|
-
]
|
|
143
|
-
},
|
|
144
|
-
"default": [
|
|
145
|
-
0
|
|
146
|
-
]
|
|
147
|
-
},
|
|
148
|
-
"stdio": {
|
|
149
|
-
"type": "string",
|
|
150
|
-
"description": "Content expected in the command's output. If the expected content can't be found in the command's output (either stdout or stderr), the step fails. Supports strings and regular expressions. To use a regular expression, the string must start and end with a forward slash, like in `/^hello-world.*/`."
|
|
151
|
-
},
|
|
152
|
-
"path": {
|
|
153
|
-
"type": "string",
|
|
154
|
-
"description": "File path to save the command's output, relative to `directory`."
|
|
155
|
-
},
|
|
156
|
-
"directory": {
|
|
157
|
-
"type": "string",
|
|
158
|
-
"description": "Directory to save the command's output. If the directory doesn't exist, creates the directory. If not specified, the directory is your media directory."
|
|
159
|
-
},
|
|
160
|
-
"maxVariation": {
|
|
161
|
-
"type": "number",
|
|
162
|
-
"description": "Allowed variation as a fraction (0 to 1) of text different between the current output and previously saved output. For example, 0.1 means 10%. If the difference between the current output and the previous output is greater than `maxVariation`, the step fails. If output doesn't exist at `path`, this value is ignored.",
|
|
163
|
-
"default": 0,
|
|
164
|
-
"minimum": 0,
|
|
165
|
-
"maximum": 1
|
|
166
|
-
},
|
|
167
|
-
"overwrite": {
|
|
168
|
-
"type": "string",
|
|
169
|
-
"description": "If `true`, overwrites the existing output at `path` if it exists.\nIf `aboveVariation`, overwrites the existing output at `path` if the difference between the new output and the existing output is greater than `maxVariation`.",
|
|
170
|
-
"enum": [
|
|
171
|
-
"true",
|
|
172
|
-
"false",
|
|
173
|
-
"aboveVariation"
|
|
174
|
-
],
|
|
175
|
-
"default": "aboveVariation"
|
|
176
|
-
},
|
|
177
|
-
"timeout": {
|
|
178
|
-
"type": "integer",
|
|
179
|
-
"description": "Max time in milliseconds the command is allowed to run. If the command runs longer than this, the step fails.",
|
|
180
|
-
"default": 60000
|
|
181
|
-
}
|
|
182
|
-
},
|
|
183
|
-
"title": "Run code (detailed)"
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
},
|
|
187
|
-
"examples": [
|
|
188
|
-
{
|
|
189
|
-
"language": "javascript",
|
|
190
|
-
"code": "console.log('Hello, ${process.env.USER}!');"
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
"language": "bash",
|
|
194
|
-
"code": "docker run hello-world",
|
|
195
|
-
"timeout": 20000,
|
|
196
|
-
"exitCodes": [
|
|
197
|
-
0
|
|
198
|
-
],
|
|
199
|
-
"stdio": "Hello from Docker!"
|
|
200
|
-
},
|
|
201
|
-
{
|
|
202
|
-
"language": "javascript",
|
|
203
|
-
"code": "return false",
|
|
204
|
-
"exitCodes": [
|
|
205
|
-
1
|
|
206
|
-
]
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
"language": "python",
|
|
210
|
-
"code": "print('Hello from Python')",
|
|
211
|
-
"workingDirectory": ".",
|
|
212
|
-
"exitCodes": [
|
|
213
|
-
0
|
|
214
|
-
],
|
|
215
|
-
"stdio": "Hello from Python!",
|
|
216
|
-
"path": "python-output.txt",
|
|
217
|
-
"directory": "output",
|
|
218
|
-
"maxVariation": 0.1,
|
|
219
|
-
"overwrite": "aboveVariation"
|
|
220
|
-
}
|
|
221
|
-
]
|
|
222
|
-
}
|
|
@@ -1,236 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"title": "runShell",
|
|
4
|
-
"description": "Perform a native shell command.",
|
|
5
|
-
"anyOf": [
|
|
6
|
-
{
|
|
7
|
-
"title": "Run shell command (simple)",
|
|
8
|
-
"description": "Command to perform in the machine's default shell.",
|
|
9
|
-
"type": "string",
|
|
10
|
-
"transform": [
|
|
11
|
-
"trim"
|
|
12
|
-
]
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"type": "object",
|
|
16
|
-
"required": [
|
|
17
|
-
"command"
|
|
18
|
-
],
|
|
19
|
-
"additionalProperties": false,
|
|
20
|
-
"properties": {
|
|
21
|
-
"command": {
|
|
22
|
-
"type": "string",
|
|
23
|
-
"description": "Command to perform in the machine's default shell."
|
|
24
|
-
},
|
|
25
|
-
"args": {
|
|
26
|
-
"type": "array",
|
|
27
|
-
"description": "Arguments for the command.",
|
|
28
|
-
"items": {
|
|
29
|
-
"anyOf": [
|
|
30
|
-
{
|
|
31
|
-
"type": "string"
|
|
32
|
-
}
|
|
33
|
-
]
|
|
34
|
-
},
|
|
35
|
-
"default": []
|
|
36
|
-
},
|
|
37
|
-
"workingDirectory": {
|
|
38
|
-
"type": "string",
|
|
39
|
-
"description": "Working directory for the command.",
|
|
40
|
-
"default": "."
|
|
41
|
-
},
|
|
42
|
-
"exitCodes": {
|
|
43
|
-
"type": "array",
|
|
44
|
-
"description": "Expected exit codes of the command. If the command's actual exit code isn't in this list, the step fails.",
|
|
45
|
-
"items": {
|
|
46
|
-
"anyOf": [
|
|
47
|
-
{
|
|
48
|
-
"type": "integer"
|
|
49
|
-
}
|
|
50
|
-
]
|
|
51
|
-
},
|
|
52
|
-
"default": [
|
|
53
|
-
0
|
|
54
|
-
]
|
|
55
|
-
},
|
|
56
|
-
"stdio": {
|
|
57
|
-
"type": "string",
|
|
58
|
-
"description": "Content expected in the command's stdout or stderr. If the expected content can't be found in the command's stdout or stderr, the step fails. Supports strings and regular expressions. To use a regular expression, the string must start and end with a forward slash, like in `/^hello-world.*/`."
|
|
59
|
-
},
|
|
60
|
-
"path": {
|
|
61
|
-
"type": "string",
|
|
62
|
-
"description": "File path to save the command's output, relative to `directory`."
|
|
63
|
-
},
|
|
64
|
-
"directory": {
|
|
65
|
-
"type": "string",
|
|
66
|
-
"description": "Directory to save the command's output. If the directory doesn't exist, creates the directory. If not specified, the directory is your media directory."
|
|
67
|
-
},
|
|
68
|
-
"maxVariation": {
|
|
69
|
-
"type": "number",
|
|
70
|
-
"description": "Allowed variation as a fraction (0 to 1) of text different between the current output and previously saved output. For example, 0.1 means 10%. If the difference between the current output and the previous output is greater than `maxVariation`, the step fails. If output doesn't exist at `path`, this value is ignored.",
|
|
71
|
-
"default": 0,
|
|
72
|
-
"minimum": 0,
|
|
73
|
-
"maximum": 1
|
|
74
|
-
},
|
|
75
|
-
"overwrite": {
|
|
76
|
-
"type": "string",
|
|
77
|
-
"description": "If `true`, overwrites the existing output at `path` if it exists.\nIf `aboveVariation`, overwrites the existing output at `path` if the difference between the new output and the existing output is greater than `maxVariation`.",
|
|
78
|
-
"enum": [
|
|
79
|
-
"true",
|
|
80
|
-
"false",
|
|
81
|
-
"aboveVariation"
|
|
82
|
-
],
|
|
83
|
-
"default": "aboveVariation"
|
|
84
|
-
},
|
|
85
|
-
"timeout": {
|
|
86
|
-
"type": "integer",
|
|
87
|
-
"description": "Max time in milliseconds the command is allowed to run. If the command runs longer than this, the step fails.",
|
|
88
|
-
"default": 60000
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
"title": "Run shell command (detailed)"
|
|
92
|
-
}
|
|
93
|
-
],
|
|
94
|
-
"components": {
|
|
95
|
-
"schemas": {
|
|
96
|
-
"string": {
|
|
97
|
-
"title": "Run shell command (simple)",
|
|
98
|
-
"description": "Command to perform in the machine's default shell.",
|
|
99
|
-
"type": "string",
|
|
100
|
-
"transform": [
|
|
101
|
-
"trim"
|
|
102
|
-
]
|
|
103
|
-
},
|
|
104
|
-
"object": {
|
|
105
|
-
"type": "object",
|
|
106
|
-
"required": [
|
|
107
|
-
"command"
|
|
108
|
-
],
|
|
109
|
-
"additionalProperties": false,
|
|
110
|
-
"properties": {
|
|
111
|
-
"command": {
|
|
112
|
-
"type": "string",
|
|
113
|
-
"description": "Command to perform in the machine's default shell."
|
|
114
|
-
},
|
|
115
|
-
"args": {
|
|
116
|
-
"type": "array",
|
|
117
|
-
"description": "Arguments for the command.",
|
|
118
|
-
"items": {
|
|
119
|
-
"anyOf": [
|
|
120
|
-
{
|
|
121
|
-
"type": "string"
|
|
122
|
-
}
|
|
123
|
-
]
|
|
124
|
-
},
|
|
125
|
-
"default": []
|
|
126
|
-
},
|
|
127
|
-
"workingDirectory": {
|
|
128
|
-
"type": "string",
|
|
129
|
-
"description": "Working directory for the command.",
|
|
130
|
-
"default": "."
|
|
131
|
-
},
|
|
132
|
-
"exitCodes": {
|
|
133
|
-
"type": "array",
|
|
134
|
-
"description": "Expected exit codes of the command. If the command's actual exit code isn't in this list, the step fails.",
|
|
135
|
-
"items": {
|
|
136
|
-
"anyOf": [
|
|
137
|
-
{
|
|
138
|
-
"type": "integer"
|
|
139
|
-
}
|
|
140
|
-
]
|
|
141
|
-
},
|
|
142
|
-
"default": [
|
|
143
|
-
0
|
|
144
|
-
]
|
|
145
|
-
},
|
|
146
|
-
"stdio": {
|
|
147
|
-
"type": "string",
|
|
148
|
-
"description": "Content expected in the command's stdout or stderr. If the expected content can't be found in the command's stdout or stderr, the step fails. Supports strings and regular expressions. To use a regular expression, the string must start and end with a forward slash, like in `/^hello-world.*/`."
|
|
149
|
-
},
|
|
150
|
-
"path": {
|
|
151
|
-
"type": "string",
|
|
152
|
-
"description": "File path to save the command's output, relative to `directory`."
|
|
153
|
-
},
|
|
154
|
-
"directory": {
|
|
155
|
-
"type": "string",
|
|
156
|
-
"description": "Directory to save the command's output. If the directory doesn't exist, creates the directory. If not specified, the directory is your media directory."
|
|
157
|
-
},
|
|
158
|
-
"maxVariation": {
|
|
159
|
-
"type": "number",
|
|
160
|
-
"description": "Allowed variation as a fraction (0 to 1) of text different between the current output and previously saved output. For example, 0.1 means 10%. If the difference between the current output and the previous output is greater than `maxVariation`, the step fails. If output doesn't exist at `path`, this value is ignored.",
|
|
161
|
-
"default": 0,
|
|
162
|
-
"minimum": 0,
|
|
163
|
-
"maximum": 1
|
|
164
|
-
},
|
|
165
|
-
"overwrite": {
|
|
166
|
-
"type": "string",
|
|
167
|
-
"description": "If `true`, overwrites the existing output at `path` if it exists.\nIf `aboveVariation`, overwrites the existing output at `path` if the difference between the new output and the existing output is greater than `maxVariation`.",
|
|
168
|
-
"enum": [
|
|
169
|
-
"true",
|
|
170
|
-
"false",
|
|
171
|
-
"aboveVariation"
|
|
172
|
-
],
|
|
173
|
-
"default": "aboveVariation"
|
|
174
|
-
},
|
|
175
|
-
"timeout": {
|
|
176
|
-
"type": "integer",
|
|
177
|
-
"description": "Max time in milliseconds the command is allowed to run. If the command runs longer than this, the step fails.",
|
|
178
|
-
"default": 60000
|
|
179
|
-
}
|
|
180
|
-
},
|
|
181
|
-
"title": "Run shell command (detailed)"
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
},
|
|
185
|
-
"examples": [
|
|
186
|
-
"docker run hello-world",
|
|
187
|
-
{
|
|
188
|
-
"command": "echo",
|
|
189
|
-
"args": [
|
|
190
|
-
"$USER"
|
|
191
|
-
]
|
|
192
|
-
},
|
|
193
|
-
{
|
|
194
|
-
"command": "echo",
|
|
195
|
-
"args": [
|
|
196
|
-
"hello-world"
|
|
197
|
-
]
|
|
198
|
-
},
|
|
199
|
-
{
|
|
200
|
-
"command": "docker run hello-world",
|
|
201
|
-
"timeout": 20000,
|
|
202
|
-
"exitCodes": [
|
|
203
|
-
0
|
|
204
|
-
],
|
|
205
|
-
"stdio": "Hello from Docker!"
|
|
206
|
-
},
|
|
207
|
-
{
|
|
208
|
-
"command": "false",
|
|
209
|
-
"exitCodes": [
|
|
210
|
-
1
|
|
211
|
-
]
|
|
212
|
-
},
|
|
213
|
-
{
|
|
214
|
-
"command": "echo",
|
|
215
|
-
"args": [
|
|
216
|
-
"setup"
|
|
217
|
-
],
|
|
218
|
-
"exitCodes": [
|
|
219
|
-
0
|
|
220
|
-
],
|
|
221
|
-
"stdio": "/.*?/"
|
|
222
|
-
},
|
|
223
|
-
{
|
|
224
|
-
"command": "docker run hello-world",
|
|
225
|
-
"workingDirectory": ".",
|
|
226
|
-
"exitCodes": [
|
|
227
|
-
0
|
|
228
|
-
],
|
|
229
|
-
"stdio": "Hello from Docker!",
|
|
230
|
-
"path": "docker-output.txt",
|
|
231
|
-
"directory": "output",
|
|
232
|
-
"maxVariation": 0.1,
|
|
233
|
-
"overwrite": "aboveVariation"
|
|
234
|
-
}
|
|
235
|
-
]
|
|
236
|
-
}
|
|
@@ -1,245 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"title": "saveCookie",
|
|
4
|
-
"description": "Save a specific browser cookie to a file or environment variable for later reuse.",
|
|
5
|
-
"anyOf": [
|
|
6
|
-
{
|
|
7
|
-
"type": "string",
|
|
8
|
-
"title": "Cookie name",
|
|
9
|
-
"description": "Name of the specific cookie to save. Will be saved to a default file path or environment variable.",
|
|
10
|
-
"pattern": "^[A-Za-z0-9_./\\-]+$",
|
|
11
|
-
"transform": [
|
|
12
|
-
"trim"
|
|
13
|
-
]
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"type": "object",
|
|
17
|
-
"additionalProperties": false,
|
|
18
|
-
"properties": {
|
|
19
|
-
"$schema": {
|
|
20
|
-
"description": "Optional self-describing schema URI for linters",
|
|
21
|
-
"type": "string",
|
|
22
|
-
"format": "uri-reference"
|
|
23
|
-
},
|
|
24
|
-
"name": {
|
|
25
|
-
"type": "string",
|
|
26
|
-
"title": "Cookie name",
|
|
27
|
-
"description": "Name of the specific cookie to save.",
|
|
28
|
-
"pattern": "^[A-Za-z0-9_.-]+$",
|
|
29
|
-
"transform": [
|
|
30
|
-
"trim"
|
|
31
|
-
]
|
|
32
|
-
},
|
|
33
|
-
"variable": {
|
|
34
|
-
"type": "string",
|
|
35
|
-
"title": "Environment variable name",
|
|
36
|
-
"description": "Environment variable name to store the cookie as JSON string.",
|
|
37
|
-
"pattern": "^[A-Za-z_][A-Za-z0-9_]*$",
|
|
38
|
-
"transform": [
|
|
39
|
-
"trim"
|
|
40
|
-
]
|
|
41
|
-
},
|
|
42
|
-
"path": {
|
|
43
|
-
"type": "string",
|
|
44
|
-
"title": "Cookie file path",
|
|
45
|
-
"description": "File path to save the cookie, relative to directory. Uses Netscape cookie format.",
|
|
46
|
-
"transform": [
|
|
47
|
-
"trim"
|
|
48
|
-
]
|
|
49
|
-
},
|
|
50
|
-
"directory": {
|
|
51
|
-
"type": "string",
|
|
52
|
-
"title": "Directory path",
|
|
53
|
-
"description": "Directory to save the cookie file. If not specified, uses output directory.",
|
|
54
|
-
"transform": [
|
|
55
|
-
"trim"
|
|
56
|
-
]
|
|
57
|
-
},
|
|
58
|
-
"overwrite": {
|
|
59
|
-
"type": "boolean",
|
|
60
|
-
"title": "Overwrite existing file",
|
|
61
|
-
"description": "Whether to overwrite existing cookie file.",
|
|
62
|
-
"default": false
|
|
63
|
-
},
|
|
64
|
-
"domain": {
|
|
65
|
-
"type": "string",
|
|
66
|
-
"title": "Cookie domain",
|
|
67
|
-
"description": "Specific domain to filter the cookie by (optional).",
|
|
68
|
-
"transform": [
|
|
69
|
-
"trim"
|
|
70
|
-
]
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
"required": [
|
|
74
|
-
"name"
|
|
75
|
-
],
|
|
76
|
-
"anyOf": [
|
|
77
|
-
{
|
|
78
|
-
"required": [
|
|
79
|
-
"path"
|
|
80
|
-
],
|
|
81
|
-
"not": {
|
|
82
|
-
"required": [
|
|
83
|
-
"variable"
|
|
84
|
-
]
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
"required": [
|
|
89
|
-
"variable"
|
|
90
|
-
],
|
|
91
|
-
"not": {
|
|
92
|
-
"anyOf": [
|
|
93
|
-
{
|
|
94
|
-
"required": [
|
|
95
|
-
"path"
|
|
96
|
-
]
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
"required": [
|
|
100
|
-
"directory"
|
|
101
|
-
]
|
|
102
|
-
}
|
|
103
|
-
]
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
],
|
|
107
|
-
"title": "Save cookie (detailed)"
|
|
108
|
-
}
|
|
109
|
-
],
|
|
110
|
-
"components": {
|
|
111
|
-
"schemas": {
|
|
112
|
-
"string": {
|
|
113
|
-
"type": "string",
|
|
114
|
-
"title": "Cookie name",
|
|
115
|
-
"description": "Name of the specific cookie to save. Will be saved to a default file path or environment variable.",
|
|
116
|
-
"pattern": "^[A-Za-z0-9_./\\-]+$",
|
|
117
|
-
"transform": [
|
|
118
|
-
"trim"
|
|
119
|
-
]
|
|
120
|
-
},
|
|
121
|
-
"object": {
|
|
122
|
-
"type": "object",
|
|
123
|
-
"additionalProperties": false,
|
|
124
|
-
"properties": {
|
|
125
|
-
"$schema": {
|
|
126
|
-
"description": "Optional self-describing schema URI for linters",
|
|
127
|
-
"type": "string",
|
|
128
|
-
"format": "uri-reference"
|
|
129
|
-
},
|
|
130
|
-
"name": {
|
|
131
|
-
"type": "string",
|
|
132
|
-
"title": "Cookie name",
|
|
133
|
-
"description": "Name of the specific cookie to save.",
|
|
134
|
-
"pattern": "^[A-Za-z0-9_.-]+$",
|
|
135
|
-
"transform": [
|
|
136
|
-
"trim"
|
|
137
|
-
]
|
|
138
|
-
},
|
|
139
|
-
"variable": {
|
|
140
|
-
"type": "string",
|
|
141
|
-
"title": "Environment variable name",
|
|
142
|
-
"description": "Environment variable name to store the cookie as JSON string.",
|
|
143
|
-
"pattern": "^[A-Za-z_][A-Za-z0-9_]*$",
|
|
144
|
-
"transform": [
|
|
145
|
-
"trim"
|
|
146
|
-
]
|
|
147
|
-
},
|
|
148
|
-
"path": {
|
|
149
|
-
"type": "string",
|
|
150
|
-
"title": "Cookie file path",
|
|
151
|
-
"description": "File path to save the cookie, relative to directory. Uses Netscape cookie format.",
|
|
152
|
-
"transform": [
|
|
153
|
-
"trim"
|
|
154
|
-
]
|
|
155
|
-
},
|
|
156
|
-
"directory": {
|
|
157
|
-
"type": "string",
|
|
158
|
-
"title": "Directory path",
|
|
159
|
-
"description": "Directory to save the cookie file. If not specified, uses output directory.",
|
|
160
|
-
"transform": [
|
|
161
|
-
"trim"
|
|
162
|
-
]
|
|
163
|
-
},
|
|
164
|
-
"overwrite": {
|
|
165
|
-
"type": "boolean",
|
|
166
|
-
"title": "Overwrite existing file",
|
|
167
|
-
"description": "Whether to overwrite existing cookie file.",
|
|
168
|
-
"default": false
|
|
169
|
-
},
|
|
170
|
-
"domain": {
|
|
171
|
-
"type": "string",
|
|
172
|
-
"title": "Cookie domain",
|
|
173
|
-
"description": "Specific domain to filter the cookie by (optional).",
|
|
174
|
-
"transform": [
|
|
175
|
-
"trim"
|
|
176
|
-
]
|
|
177
|
-
}
|
|
178
|
-
},
|
|
179
|
-
"required": [
|
|
180
|
-
"name"
|
|
181
|
-
],
|
|
182
|
-
"anyOf": [
|
|
183
|
-
{
|
|
184
|
-
"required": [
|
|
185
|
-
"path"
|
|
186
|
-
],
|
|
187
|
-
"not": {
|
|
188
|
-
"required": [
|
|
189
|
-
"variable"
|
|
190
|
-
]
|
|
191
|
-
}
|
|
192
|
-
},
|
|
193
|
-
{
|
|
194
|
-
"required": [
|
|
195
|
-
"variable"
|
|
196
|
-
],
|
|
197
|
-
"not": {
|
|
198
|
-
"anyOf": [
|
|
199
|
-
{
|
|
200
|
-
"required": [
|
|
201
|
-
"path"
|
|
202
|
-
]
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
"required": [
|
|
206
|
-
"directory"
|
|
207
|
-
]
|
|
208
|
-
}
|
|
209
|
-
]
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
],
|
|
213
|
-
"title": "Save cookie (detailed)"
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
},
|
|
217
|
-
"examples": [
|
|
218
|
-
"session_token",
|
|
219
|
-
"test_env_cookie",
|
|
220
|
-
{
|
|
221
|
-
"name": "auth_cookie",
|
|
222
|
-
"path": "auth-cookie.txt"
|
|
223
|
-
},
|
|
224
|
-
{
|
|
225
|
-
"name": "session_token",
|
|
226
|
-
"variable": "SESSION_TOKEN"
|
|
227
|
-
},
|
|
228
|
-
{
|
|
229
|
-
"name": "test_cookie",
|
|
230
|
-
"path": "test-cookie.txt",
|
|
231
|
-
"overwrite": true
|
|
232
|
-
},
|
|
233
|
-
{
|
|
234
|
-
"name": "user_session",
|
|
235
|
-
"path": "user-session.txt",
|
|
236
|
-
"directory": "./test-data",
|
|
237
|
-
"overwrite": true
|
|
238
|
-
},
|
|
239
|
-
{
|
|
240
|
-
"name": "login_token",
|
|
241
|
-
"path": "login-token.txt",
|
|
242
|
-
"domain": "app.example.com"
|
|
243
|
-
}
|
|
244
|
-
]
|
|
245
|
-
}
|