doc-detective-common 4.0.0-beta.0-dev.4 → 4.0.0-beta.0-dev.6
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/package.json +1 -1
- package/.c8rc.json +0 -8
- package/.mocharc.yml +0 -1
- package/icon.png +0 -0
- package/scripts/check-coverage-ratchet.cjs +0 -123
- package/scripts/createCjsWrapper.js +0 -25
- package/scripts/generateTypes.cjs +0 -54
- package/src/detectTests.ts +0 -660
- package/src/index.ts +0 -3
- package/src/schemas/build/checkLink_v2.schema.json +0 -81
- package/src/schemas/build/checkLink_v3.schema.json +0 -92
- package/src/schemas/build/click_v3.schema.json +0 -145
- package/src/schemas/build/config_v2.schema.json +0 -1079
- package/src/schemas/build/config_v3.schema.json +0 -696
- package/src/schemas/build/context_v2.schema.json +0 -135
- package/src/schemas/build/context_v3.schema.json +0 -229
- package/src/schemas/build/dragAndDrop_v3.schema.json +0 -189
- package/src/schemas/build/find_v2.schema.json +0 -168
- package/src/schemas/build/find_v3.schema.json +0 -214
- package/src/schemas/build/goTo_v2.schema.json +0 -63
- package/src/schemas/build/goTo_v3.schema.json +0 -257
- package/src/schemas/build/httpRequest_v2.schema.json +0 -321
- package/src/schemas/build/httpRequest_v3.schema.json +0 -439
- package/src/schemas/build/loadCookie_v3.schema.json +0 -138
- package/src/schemas/build/loadVariables_v3.schema.json +0 -10
- package/src/schemas/build/moveTo_v2.schema.json +0 -99
- package/src/schemas/build/openApi_v2.schema.json +0 -76
- package/src/schemas/build/openApi_v3.schema.json +0 -161
- package/src/schemas/build/record_v3.schema.json +0 -70
- package/src/schemas/build/report_v3.schema.json +0 -53
- package/src/schemas/build/resolvedTests_v3.schema.json +0 -238
- package/src/schemas/build/runCode_v2.schema.json +0 -201
- package/src/schemas/build/runCode_v3.schema.json +0 -138
- package/src/schemas/build/runShell_v2.schema.json +0 -189
- package/src/schemas/build/runShell_v3.schema.json +0 -156
- package/src/schemas/build/saveCookie_v3.schema.json +0 -149
- package/src/schemas/build/saveScreenshot_v2.schema.json +0 -150
- package/src/schemas/build/screenshot_v3.schema.json +0 -250
- package/src/schemas/build/setVariables_v2.schema.json +0 -39
- package/src/schemas/build/sourceIntegration_v3.schema.json +0 -51
- package/src/schemas/build/spec_v2.schema.json +0 -199
- package/src/schemas/build/spec_v3.schema.json +0 -213
- package/src/schemas/build/startRecording_v2.schema.json +0 -57
- package/src/schemas/build/step_v3.schema.json +0 -669
- package/src/schemas/build/stopRecord_v3.schema.json +0 -13
- package/src/schemas/build/stopRecording_v2.schema.json +0 -33
- package/src/schemas/build/test_v2.schema.json +0 -244
- package/src/schemas/build/test_v3.schema.json +0 -292
- package/src/schemas/build/typeKeys_v2.schema.json +0 -72
- package/src/schemas/build/type_v3.schema.json +0 -131
- package/src/schemas/build/wait_v2.schema.json +0 -42
- package/src/schemas/build/wait_v3.schema.json +0 -37
- package/src/schemas/dereferenceSchemas.cjs +0 -208
- package/src/schemas/index.ts +0 -6
- package/src/schemas/output_schemas/analytics_v1.schema.json +0 -585
- package/src/schemas/output_schemas/checkLink_v1.schema.json +0 -42
- package/src/schemas/output_schemas/checkLink_v2.schema.json +0 -80
- package/src/schemas/output_schemas/checkLink_v3.schema.json +0 -145
- package/src/schemas/output_schemas/click_v1.schema.json +0 -60
- package/src/schemas/output_schemas/click_v3.schema.json +0 -252
- package/src/schemas/output_schemas/config_v2.schema.json +0 -2628
- package/src/schemas/output_schemas/config_v3.schema.json +0 -16470
- package/src/schemas/output_schemas/context_v2.schema.json +0 -134
- package/src/schemas/output_schemas/context_v3.schema.json +0 -374
- package/src/schemas/output_schemas/dragAndDrop_v3.schema.json +0 -496
- package/src/schemas/output_schemas/endRecord_v3.schema.json +0 -12
- package/src/schemas/output_schemas/find_v1.schema.json +0 -171
- package/src/schemas/output_schemas/find_v2.schema.json +0 -184
- package/src/schemas/output_schemas/find_v3.schema.json +0 -1349
- package/src/schemas/output_schemas/goTo_v1.schema.json +0 -30
- package/src/schemas/output_schemas/goTo_v2.schema.json +0 -62
- package/src/schemas/output_schemas/goTo_v3.schema.json +0 -419
- package/src/schemas/output_schemas/httpRequest_v1.schema.json +0 -115
- package/src/schemas/output_schemas/httpRequest_v2.schema.json +0 -392
- package/src/schemas/output_schemas/httpRequest_v3.schema.json +0 -994
- package/src/schemas/output_schemas/loadCookie_v3.schema.json +0 -228
- package/src/schemas/output_schemas/loadVariables_v3.schema.json +0 -9
- package/src/schemas/output_schemas/matchText_v1.schema.json +0 -32
- package/src/schemas/output_schemas/moveMouse_v1.schema.json +0 -60
- package/src/schemas/output_schemas/moveTo_v2.schema.json +0 -98
- package/src/schemas/output_schemas/openApi_v2.schema.json +0 -75
- package/src/schemas/output_schemas/openApi_v3.schema.json +0 -162
- package/src/schemas/output_schemas/record_v3.schema.json +0 -101
- package/src/schemas/output_schemas/report_v3.schema.json +0 -16826
- package/src/schemas/output_schemas/resolvedTests_v3.schema.json +0 -33331
- package/src/schemas/output_schemas/runCode_v2.schema.json +0 -200
- package/src/schemas/output_schemas/runCode_v3.schema.json +0 -222
- package/src/schemas/output_schemas/runShell_v1.schema.json +0 -35
- package/src/schemas/output_schemas/runShell_v2.schema.json +0 -188
- package/src/schemas/output_schemas/runShell_v3.schema.json +0 -236
- package/src/schemas/output_schemas/saveCookie_v3.schema.json +0 -245
- package/src/schemas/output_schemas/saveScreenshot_v2.schema.json +0 -149
- package/src/schemas/output_schemas/screenshot_v1.schema.json +0 -48
- package/src/schemas/output_schemas/screenshot_v3.schema.json +0 -681
- package/src/schemas/output_schemas/scroll_v1.schema.json +0 -50
- package/src/schemas/output_schemas/setVariables_v2.schema.json +0 -38
- package/src/schemas/output_schemas/sourceIntegration_v3.schema.json +0 -50
- package/src/schemas/output_schemas/spec_v2.schema.json +0 -2301
- package/src/schemas/output_schemas/spec_v3.schema.json +0 -16630
- package/src/schemas/output_schemas/startRecording_v1.schema.json +0 -55
- package/src/schemas/output_schemas/startRecording_v2.schema.json +0 -56
- package/src/schemas/output_schemas/step_v3.schema.json +0 -7317
- package/src/schemas/output_schemas/stopRecord_v3.schema.json +0 -12
- package/src/schemas/output_schemas/stopRecording_v1.schema.json +0 -20
- package/src/schemas/output_schemas/stopRecording_v2.schema.json +0 -32
- package/src/schemas/output_schemas/test_v2.schema.json +0 -1903
- package/src/schemas/output_schemas/test_v3.schema.json +0 -15863
- package/src/schemas/output_schemas/typeKeys_v2.schema.json +0 -71
- package/src/schemas/output_schemas/type_v1.schema.json +0 -62
- package/src/schemas/output_schemas/type_v3.schema.json +0 -244
- package/src/schemas/output_schemas/wait_v1.schema.json +0 -42
- package/src/schemas/output_schemas/wait_v2.schema.json +0 -41
- package/src/schemas/output_schemas/wait_v3.schema.json +0 -41
- package/src/schemas/schemas.json +0 -121331
- package/src/schemas/src_schemas/analytics_v1.schema.json +0 -585
- package/src/schemas/src_schemas/checkLink_v1.schema.json +0 -42
- package/src/schemas/src_schemas/checkLink_v2.schema.json +0 -65
- package/src/schemas/src_schemas/checkLink_v3.schema.json +0 -91
- package/src/schemas/src_schemas/click_v1.schema.json +0 -60
- package/src/schemas/src_schemas/click_v3.schema.json +0 -144
- package/src/schemas/src_schemas/config_v2.schema.json +0 -929
- package/src/schemas/src_schemas/config_v3.schema.json +0 -633
- package/src/schemas/src_schemas/context_v2.schema.json +0 -108
- package/src/schemas/src_schemas/context_v3.schema.json +0 -202
- package/src/schemas/src_schemas/dragAndDrop_v3.schema.json +0 -185
- package/src/schemas/src_schemas/find_v1.schema.json +0 -137
- package/src/schemas/src_schemas/find_v2.schema.json +0 -155
- package/src/schemas/src_schemas/find_v3.schema.json +0 -210
- package/src/schemas/src_schemas/goTo_v1.schema.json +0 -30
- package/src/schemas/src_schemas/goTo_v2.schema.json +0 -58
- package/src/schemas/src_schemas/goTo_v3.schema.json +0 -232
- package/src/schemas/src_schemas/httpRequest_v1.schema.json +0 -115
- package/src/schemas/src_schemas/httpRequest_v2.schema.json +0 -284
- package/src/schemas/src_schemas/httpRequest_v3.schema.json +0 -402
- package/src/schemas/src_schemas/loadCookie_v3.schema.json +0 -113
- package/src/schemas/src_schemas/loadVariables_v3.schema.json +0 -9
- package/src/schemas/src_schemas/matchText_v1.schema.json +0 -32
- package/src/schemas/src_schemas/moveMouse_v1.schema.json +0 -60
- package/src/schemas/src_schemas/moveTo_v2.schema.json +0 -89
- package/src/schemas/src_schemas/openApi_v2.schema.json +0 -64
- package/src/schemas/src_schemas/openApi_v3.schema.json +0 -161
- package/src/schemas/src_schemas/record_v3.schema.json +0 -69
- package/src/schemas/src_schemas/report_v3.schema.json +0 -52
- package/src/schemas/src_schemas/resolvedTests_v3.schema.json +0 -237
- package/src/schemas/src_schemas/runCode_v2.schema.json +0 -181
- package/src/schemas/src_schemas/runCode_v3.schema.json +0 -137
- package/src/schemas/src_schemas/runShell_v1.schema.json +0 -35
- package/src/schemas/src_schemas/runShell_v2.schema.json +0 -166
- package/src/schemas/src_schemas/runShell_v3.schema.json +0 -155
- package/src/schemas/src_schemas/saveCookie_v3.schema.json +0 -124
- package/src/schemas/src_schemas/saveScreenshot_v2.schema.json +0 -129
- package/src/schemas/src_schemas/screenshot_v1.schema.json +0 -48
- package/src/schemas/src_schemas/screenshot_v3.schema.json +0 -249
- package/src/schemas/src_schemas/scroll_v1.schema.json +0 -50
- package/src/schemas/src_schemas/setVariables_v2.schema.json +0 -38
- package/src/schemas/src_schemas/sourceIntegration_v3.schema.json +0 -45
- package/src/schemas/src_schemas/spec_v2.schema.json +0 -175
- package/src/schemas/src_schemas/spec_v3.schema.json +0 -212
- package/src/schemas/src_schemas/startRecording_v1.schema.json +0 -55
- package/src/schemas/src_schemas/startRecording_v2.schema.json +0 -54
- package/src/schemas/src_schemas/step_v3.schema.json +0 -632
- package/src/schemas/src_schemas/stopRecord_v3.schema.json +0 -9
- package/src/schemas/src_schemas/stopRecording_v1.schema.json +0 -20
- package/src/schemas/src_schemas/stopRecording_v2.schema.json +0 -32
- package/src/schemas/src_schemas/test_v2.schema.json +0 -200
- package/src/schemas/src_schemas/test_v3.schema.json +0 -268
- package/src/schemas/src_schemas/typeKeys_v2.schema.json +0 -63
- package/src/schemas/src_schemas/type_v1.schema.json +0 -62
- package/src/schemas/src_schemas/type_v3.schema.json +0 -118
- package/src/schemas/src_schemas/wait_v1.schema.json +0 -42
- package/src/schemas/src_schemas/wait_v2.schema.json +0 -41
- package/src/schemas/src_schemas/wait_v3.schema.json +0 -36
- package/src/types/generated/checkLink_v3.ts +0 -29
- package/src/types/generated/click_v3.ts +0 -17
- package/src/types/generated/config_v3.ts +0 -405
- package/src/types/generated/context_v3.ts +0 -112
- package/src/types/generated/dragAndDrop_v3.ts +0 -39
- package/src/types/generated/endRecord_v3.ts +0 -10
- package/src/types/generated/find_v3.ts +0 -17
- package/src/types/generated/goTo_v3.ts +0 -48
- package/src/types/generated/httpRequest_v3.ts +0 -17
- package/src/types/generated/loadCookie_v3.ts +0 -17
- package/src/types/generated/loadVariables_v3.ts +0 -10
- package/src/types/generated/openApi_v3.ts +0 -64
- package/src/types/generated/record_v3.ts +0 -34
- package/src/types/generated/report_v3.ts +0 -183
- package/src/types/generated/resolvedTests_v3.ts +0 -585
- package/src/types/generated/runCode_v3.ts +0 -59
- package/src/types/generated/runShell_v3.ts +0 -58
- package/src/types/generated/saveCookie_v3.ts +0 -17
- package/src/types/generated/screenshot_v3.ts +0 -76
- package/src/types/generated/sourceIntegration_v3.ts +0 -31
- package/src/types/generated/spec_v3.ts +0 -166
- package/src/types/generated/step_v3.ts +0 -1288
- package/src/types/generated/stopRecord_v3.ts +0 -10
- package/src/types/generated/test_v3.ts +0 -3048
- package/src/types/generated/type_v3.ts +0 -56
- package/src/types/generated/wait_v3.ts +0 -13
- package/src/validate.ts +0 -627
- package/tsconfig.json +0 -22
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"title": "httpRequest",
|
|
3
|
-
"type": "object",
|
|
4
|
-
"description": "Perform a generic HTTP request, for example to a REST API.",
|
|
5
|
-
"properties": {
|
|
6
|
-
"action": {
|
|
7
|
-
"type": "string",
|
|
8
|
-
"const": "httpRequest"
|
|
9
|
-
},
|
|
10
|
-
"uri": {
|
|
11
|
-
"type": "string",
|
|
12
|
-
"description": "The URI for the HTTP request."
|
|
13
|
-
},
|
|
14
|
-
"statusCodes": {
|
|
15
|
-
"type": "array",
|
|
16
|
-
"items": {
|
|
17
|
-
"type": "integer"
|
|
18
|
-
},
|
|
19
|
-
"default": [
|
|
20
|
-
200
|
|
21
|
-
]
|
|
22
|
-
},
|
|
23
|
-
"env": {
|
|
24
|
-
"type": "string",
|
|
25
|
-
"description": ""
|
|
26
|
-
},
|
|
27
|
-
"method": {
|
|
28
|
-
"type": "string",
|
|
29
|
-
"description": "Method of the HTTP request",
|
|
30
|
-
"enum": [
|
|
31
|
-
"get",
|
|
32
|
-
"post",
|
|
33
|
-
"patch",
|
|
34
|
-
"delete"
|
|
35
|
-
],
|
|
36
|
-
"default": "get"
|
|
37
|
-
},
|
|
38
|
-
"requestHeaders": {
|
|
39
|
-
"description": "Headers to include in the HTTP request, in key/value format.",
|
|
40
|
-
"type": "object",
|
|
41
|
-
"additionalProperties": true,
|
|
42
|
-
"minProperties": 1,
|
|
43
|
-
"properties": {}
|
|
44
|
-
},
|
|
45
|
-
"responseHeaders": {
|
|
46
|
-
"description": "Headers expected in the response, in key/value format. If one or more `responseHeaders` entries aren't present in the response, the action fails.",
|
|
47
|
-
"type": "object",
|
|
48
|
-
"additionalProperties": true,
|
|
49
|
-
"minProperties": 1,
|
|
50
|
-
"properties": {}
|
|
51
|
-
},
|
|
52
|
-
"requestParams": {
|
|
53
|
-
"description": "URL parameters to include in the HTTP request, in key/value format.",
|
|
54
|
-
"type": "object",
|
|
55
|
-
"additionalProperties": true,
|
|
56
|
-
"minProperties": 1,
|
|
57
|
-
"properties": {}
|
|
58
|
-
},
|
|
59
|
-
"responseParams": {
|
|
60
|
-
"description": "URL parameters expected in the response, in key/value format. If one or more `responseParams` entries aren't present in the response, the action fails.",
|
|
61
|
-
"type": "object",
|
|
62
|
-
"additionalProperties": true,
|
|
63
|
-
"minProperties": 1,
|
|
64
|
-
"properties": {}
|
|
65
|
-
},
|
|
66
|
-
"requestData": {
|
|
67
|
-
"type": "object",
|
|
68
|
-
"additionalProperties": true,
|
|
69
|
-
"minProperties": 1,
|
|
70
|
-
"properties": {}
|
|
71
|
-
},
|
|
72
|
-
"responseData": {
|
|
73
|
-
"type": "object",
|
|
74
|
-
"additionalProperties": true,
|
|
75
|
-
"minProperties": 1,
|
|
76
|
-
"properties": {}
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
"required": [
|
|
80
|
-
"action",
|
|
81
|
-
"uri"
|
|
82
|
-
],
|
|
83
|
-
"additionalProperties": false,
|
|
84
|
-
"examples": [
|
|
85
|
-
{
|
|
86
|
-
"action": "httpRequest",
|
|
87
|
-
"uri": "https://www.api-server.com",
|
|
88
|
-
"method": "post"
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
"action": "httpRequest",
|
|
92
|
-
"env": "path/to/variables.env",
|
|
93
|
-
"uri": "https://www.api-server.com",
|
|
94
|
-
"method": "post",
|
|
95
|
-
"requestHeaders": {
|
|
96
|
-
"header": "value"
|
|
97
|
-
},
|
|
98
|
-
"requestParams": {
|
|
99
|
-
"param": "value"
|
|
100
|
-
},
|
|
101
|
-
"requestData": {
|
|
102
|
-
"field": "value"
|
|
103
|
-
},
|
|
104
|
-
"responseHeaders": {
|
|
105
|
-
"header": "value"
|
|
106
|
-
},
|
|
107
|
-
"responseData": {
|
|
108
|
-
"field": "value"
|
|
109
|
-
},
|
|
110
|
-
"statusCodes": [
|
|
111
|
-
200
|
|
112
|
-
]
|
|
113
|
-
}
|
|
114
|
-
]
|
|
115
|
-
}
|
|
@@ -1,284 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"title": "httpRequest",
|
|
3
|
-
"type": "object",
|
|
4
|
-
"description": "Perform a generic HTTP request, for example to an API.",
|
|
5
|
-
"properties": {
|
|
6
|
-
"id": {
|
|
7
|
-
"type": "string",
|
|
8
|
-
"description": "ID of the step."
|
|
9
|
-
},
|
|
10
|
-
"description": {
|
|
11
|
-
"type": "string",
|
|
12
|
-
"description": "Description of the step."
|
|
13
|
-
},
|
|
14
|
-
"action": {
|
|
15
|
-
"type": "string",
|
|
16
|
-
"const": "httpRequest",
|
|
17
|
-
"description": "Action to perform."
|
|
18
|
-
},
|
|
19
|
-
"url": {
|
|
20
|
-
"type": "string",
|
|
21
|
-
"description": "URL for the HTTP request.",
|
|
22
|
-
"pattern": "(^(http://|https://).*|\\$[A-Za-z0-9_]+)",
|
|
23
|
-
"transform": ["trim"]
|
|
24
|
-
},
|
|
25
|
-
"openApi": {
|
|
26
|
-
"allOf": [
|
|
27
|
-
{
|
|
28
|
-
"$ref": "openApi_v2.schema.json#"
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"type": "object",
|
|
32
|
-
"required": ["operationId"]
|
|
33
|
-
}
|
|
34
|
-
]
|
|
35
|
-
},
|
|
36
|
-
"statusCodes": {
|
|
37
|
-
"description": "Accepted status codes. If the specified URL returns a code other than what is specified here, the action fails.",
|
|
38
|
-
"type": "array",
|
|
39
|
-
"items": {
|
|
40
|
-
"oneOf": [
|
|
41
|
-
{
|
|
42
|
-
"type": "integer"
|
|
43
|
-
}
|
|
44
|
-
]
|
|
45
|
-
},
|
|
46
|
-
"default": [200]
|
|
47
|
-
},
|
|
48
|
-
"method": {
|
|
49
|
-
"type": "string",
|
|
50
|
-
"description": "Method of the HTTP request",
|
|
51
|
-
"enum": ["get", "put", "post", "patch", "delete"],
|
|
52
|
-
"transform": ["trim", "toEnumCase"],
|
|
53
|
-
"default": "get"
|
|
54
|
-
},
|
|
55
|
-
"timeout": {
|
|
56
|
-
"type": "integer",
|
|
57
|
-
"description": "Timeout for the HTTP request, in milliseconds.",
|
|
58
|
-
"default": 60000
|
|
59
|
-
},
|
|
60
|
-
"requestHeaders": {
|
|
61
|
-
"description": "Headers to include in the HTTP request, in key/value format.",
|
|
62
|
-
"type": "object",
|
|
63
|
-
"additionalProperties": true,
|
|
64
|
-
"properties": {},
|
|
65
|
-
"default": {}
|
|
66
|
-
},
|
|
67
|
-
"responseHeaders": {
|
|
68
|
-
"description": "Headers expected in the response, in key/value format. If one or more `responseHeaders` entries aren't present in the response, the step fails.",
|
|
69
|
-
"type": "object",
|
|
70
|
-
"additionalProperties": true,
|
|
71
|
-
"properties": {},
|
|
72
|
-
"default": {}
|
|
73
|
-
},
|
|
74
|
-
"requestParams": {
|
|
75
|
-
"description": "URL parameters to include in the HTTP request, in key/value format.",
|
|
76
|
-
"type": "object",
|
|
77
|
-
"additionalProperties": true,
|
|
78
|
-
"default": {},
|
|
79
|
-
"properties": {}
|
|
80
|
-
},
|
|
81
|
-
"responseParams": {
|
|
82
|
-
"description": "DEPRECATED.",
|
|
83
|
-
"type": "object",
|
|
84
|
-
"additionalProperties": true,
|
|
85
|
-
"default": {},
|
|
86
|
-
"properties": {}
|
|
87
|
-
},
|
|
88
|
-
"requestData": {
|
|
89
|
-
"description": "JSON object to include as the body of the HTTP request.",
|
|
90
|
-
"type": "object",
|
|
91
|
-
"additionalProperties": true,
|
|
92
|
-
"default": {},
|
|
93
|
-
"properties": {}
|
|
94
|
-
},
|
|
95
|
-
"responseData": {
|
|
96
|
-
"description": "JSON object expected in the response. If one or more key/value pairs aren't present in the response, the step fails.",
|
|
97
|
-
"type": "object",
|
|
98
|
-
"additionalProperties": true,
|
|
99
|
-
"default": {},
|
|
100
|
-
"properties": {}
|
|
101
|
-
},
|
|
102
|
-
"allowAdditionalFields": {
|
|
103
|
-
"type": "boolean",
|
|
104
|
-
"description": "If `false`, the step fails when the response data contains fields not specified in `responseData`.",
|
|
105
|
-
"default": true
|
|
106
|
-
},
|
|
107
|
-
"savePath": {
|
|
108
|
-
"type": "string",
|
|
109
|
-
"description": "File path to save the command's output, relative to `saveDirectory`. Specify a file extension that matches the expected response type, such as `.json` for JSON content or `.txt` for strings."
|
|
110
|
-
},
|
|
111
|
-
"saveDirectory": {
|
|
112
|
-
"type": "string",
|
|
113
|
-
"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."
|
|
114
|
-
},
|
|
115
|
-
"maxVariation": {
|
|
116
|
-
"type": "integer",
|
|
117
|
-
"description": "Allowed variation in percentage of text different between the current output and previously saved output. If the difference between the current output and the previous output is greater than `maxVariation`, the step fails. If output doesn't exist at `savePath`, this value is ignored.",
|
|
118
|
-
"default": 0,
|
|
119
|
-
"minimum": 0,
|
|
120
|
-
"maximum": 100
|
|
121
|
-
},
|
|
122
|
-
"overwrite": {
|
|
123
|
-
"type": "string",
|
|
124
|
-
"description": "If `true`, overwrites the existing output at `savePath` if it exists.\nIf `byVariation`, overwrites the existing output at `savePath` if the difference between the new output and the existing output is greater than `maxVariation`.",
|
|
125
|
-
"enum": ["true", "false", "byVariation"],
|
|
126
|
-
"default": "false"
|
|
127
|
-
},
|
|
128
|
-
"envsFromResponseData": {
|
|
129
|
-
"description": "Environment variables to set based on response variables, as an object of the environment variable name and the jq filter applied to the response data to identify the variable's value.",
|
|
130
|
-
"type": "array",
|
|
131
|
-
"default": [],
|
|
132
|
-
"items": {
|
|
133
|
-
"oneOf": [
|
|
134
|
-
{
|
|
135
|
-
"description": "",
|
|
136
|
-
"type": "object",
|
|
137
|
-
"properties": {
|
|
138
|
-
"name": {
|
|
139
|
-
"description": "Name of the environment variable to set.",
|
|
140
|
-
"type": "string"
|
|
141
|
-
},
|
|
142
|
-
"jqFilter": {
|
|
143
|
-
"description": "jq filter to apply to the response data. If the filter doesn't return a value, the environment variable isn't set.",
|
|
144
|
-
"type": "string"
|
|
145
|
-
}
|
|
146
|
-
},
|
|
147
|
-
"required": ["name", "jqFilter"]
|
|
148
|
-
}
|
|
149
|
-
]
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
},
|
|
153
|
-
"dynamicDefaults": {
|
|
154
|
-
"id": "uuid"
|
|
155
|
-
},
|
|
156
|
-
"anyOf": [
|
|
157
|
-
{
|
|
158
|
-
"required": ["url"]
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
"required": ["openApi"]
|
|
162
|
-
}
|
|
163
|
-
],
|
|
164
|
-
"required": ["action"],
|
|
165
|
-
"additionalProperties": false,
|
|
166
|
-
"examples": [
|
|
167
|
-
{
|
|
168
|
-
"action": "httpRequest",
|
|
169
|
-
"url": "https://reqres.in/api/users"
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
"action": "httpRequest",
|
|
173
|
-
"url": "https://reqres.in/api/users/2",
|
|
174
|
-
"method": "put",
|
|
175
|
-
"requestData": {
|
|
176
|
-
"name": "morpheus",
|
|
177
|
-
"job": "zion resident"
|
|
178
|
-
}
|
|
179
|
-
},
|
|
180
|
-
{
|
|
181
|
-
"action": "httpRequest",
|
|
182
|
-
"url": "https://reqres.in/api/users",
|
|
183
|
-
"method": "post",
|
|
184
|
-
"requestData": {
|
|
185
|
-
"name": "morpheus",
|
|
186
|
-
"job": "leader"
|
|
187
|
-
},
|
|
188
|
-
"responseData": {
|
|
189
|
-
"name": "morpheus",
|
|
190
|
-
"job": "leader"
|
|
191
|
-
},
|
|
192
|
-
"statusCodes": [200, 201]
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
"action": "httpRequest",
|
|
196
|
-
"url": "https://www.api-server.com",
|
|
197
|
-
"method": "post",
|
|
198
|
-
"timeout": 30000,
|
|
199
|
-
"requestHeaders": {
|
|
200
|
-
"header": "value"
|
|
201
|
-
},
|
|
202
|
-
"requestParams": {
|
|
203
|
-
"param": "value"
|
|
204
|
-
},
|
|
205
|
-
"requestData": {
|
|
206
|
-
"field": "value"
|
|
207
|
-
},
|
|
208
|
-
"responseHeaders": {
|
|
209
|
-
"header": "value"
|
|
210
|
-
},
|
|
211
|
-
"responseData": {
|
|
212
|
-
"field": "value"
|
|
213
|
-
},
|
|
214
|
-
"statusCodes": [200]
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
"action": "httpRequest",
|
|
218
|
-
"url": "https://reqres.in/api/users",
|
|
219
|
-
"method": "post",
|
|
220
|
-
"requestData": {
|
|
221
|
-
"name": "morpheus",
|
|
222
|
-
"job": "leader"
|
|
223
|
-
},
|
|
224
|
-
"responseData": {
|
|
225
|
-
"name": "morpheus",
|
|
226
|
-
"job": "leader"
|
|
227
|
-
},
|
|
228
|
-
"statusCodes": [200, 201],
|
|
229
|
-
"savePath": "response.json",
|
|
230
|
-
"saveDirectory": "media",
|
|
231
|
-
"maxVariation": 5,
|
|
232
|
-
"overwrite": "byVariation"
|
|
233
|
-
},
|
|
234
|
-
{
|
|
235
|
-
"action": "httpRequest",
|
|
236
|
-
"openApi": {
|
|
237
|
-
"name": "Reqres",
|
|
238
|
-
"operationId": "getUserById"
|
|
239
|
-
},
|
|
240
|
-
"requestParams": {
|
|
241
|
-
"id": 123
|
|
242
|
-
}
|
|
243
|
-
},
|
|
244
|
-
{
|
|
245
|
-
"action": "httpRequest",
|
|
246
|
-
"openApi": {
|
|
247
|
-
"descriptionPath": "https://api.example.com/openapi.json",
|
|
248
|
-
"operationId": "getUserById"
|
|
249
|
-
},
|
|
250
|
-
"requestParams": {
|
|
251
|
-
"id": 123
|
|
252
|
-
}
|
|
253
|
-
},
|
|
254
|
-
{
|
|
255
|
-
"action": "httpRequest",
|
|
256
|
-
"openApi": {
|
|
257
|
-
"descriptionPath": "https://api.example.com/openapi.json",
|
|
258
|
-
"operationId": "createUser",
|
|
259
|
-
"useExample": "both"
|
|
260
|
-
}
|
|
261
|
-
},
|
|
262
|
-
{
|
|
263
|
-
"action": "httpRequest",
|
|
264
|
-
"openApi": {
|
|
265
|
-
"descriptionPath": "https://api.example.com/openapi.json",
|
|
266
|
-
"operationId": "updateUser",
|
|
267
|
-
"useExample": "request",
|
|
268
|
-
"exampleKey": "acme"
|
|
269
|
-
}
|
|
270
|
-
},
|
|
271
|
-
{
|
|
272
|
-
"action": "httpRequest",
|
|
273
|
-
"openApi": {
|
|
274
|
-
"descriptionPath": "https://api.example.com/openapi.json",
|
|
275
|
-
"operationId": "updateUser",
|
|
276
|
-
"useExample": "request",
|
|
277
|
-
"exampleKey": "acme",
|
|
278
|
-
"requestHeaders": {
|
|
279
|
-
"Authorization": "Bearer $TOKEN"
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
]
|
|
284
|
-
}
|