doc-detective-common 4.0.0-beta.0-dev.4 → 4.0.0-beta.0-dev.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.
Files changed (200) hide show
  1. package/package.json +1 -1
  2. package/.c8rc.json +0 -8
  3. package/.mocharc.yml +0 -1
  4. package/icon.png +0 -0
  5. package/scripts/check-coverage-ratchet.cjs +0 -123
  6. package/scripts/createCjsWrapper.js +0 -25
  7. package/scripts/generateTypes.cjs +0 -54
  8. package/src/detectTests.ts +0 -660
  9. package/src/index.ts +0 -3
  10. package/src/schemas/build/checkLink_v2.schema.json +0 -81
  11. package/src/schemas/build/checkLink_v3.schema.json +0 -92
  12. package/src/schemas/build/click_v3.schema.json +0 -145
  13. package/src/schemas/build/config_v2.schema.json +0 -1079
  14. package/src/schemas/build/config_v3.schema.json +0 -696
  15. package/src/schemas/build/context_v2.schema.json +0 -135
  16. package/src/schemas/build/context_v3.schema.json +0 -229
  17. package/src/schemas/build/dragAndDrop_v3.schema.json +0 -189
  18. package/src/schemas/build/find_v2.schema.json +0 -168
  19. package/src/schemas/build/find_v3.schema.json +0 -214
  20. package/src/schemas/build/goTo_v2.schema.json +0 -63
  21. package/src/schemas/build/goTo_v3.schema.json +0 -257
  22. package/src/schemas/build/httpRequest_v2.schema.json +0 -321
  23. package/src/schemas/build/httpRequest_v3.schema.json +0 -439
  24. package/src/schemas/build/loadCookie_v3.schema.json +0 -138
  25. package/src/schemas/build/loadVariables_v3.schema.json +0 -10
  26. package/src/schemas/build/moveTo_v2.schema.json +0 -99
  27. package/src/schemas/build/openApi_v2.schema.json +0 -76
  28. package/src/schemas/build/openApi_v3.schema.json +0 -161
  29. package/src/schemas/build/record_v3.schema.json +0 -70
  30. package/src/schemas/build/report_v3.schema.json +0 -53
  31. package/src/schemas/build/resolvedTests_v3.schema.json +0 -238
  32. package/src/schemas/build/runCode_v2.schema.json +0 -201
  33. package/src/schemas/build/runCode_v3.schema.json +0 -138
  34. package/src/schemas/build/runShell_v2.schema.json +0 -189
  35. package/src/schemas/build/runShell_v3.schema.json +0 -156
  36. package/src/schemas/build/saveCookie_v3.schema.json +0 -149
  37. package/src/schemas/build/saveScreenshot_v2.schema.json +0 -150
  38. package/src/schemas/build/screenshot_v3.schema.json +0 -250
  39. package/src/schemas/build/setVariables_v2.schema.json +0 -39
  40. package/src/schemas/build/sourceIntegration_v3.schema.json +0 -51
  41. package/src/schemas/build/spec_v2.schema.json +0 -199
  42. package/src/schemas/build/spec_v3.schema.json +0 -213
  43. package/src/schemas/build/startRecording_v2.schema.json +0 -57
  44. package/src/schemas/build/step_v3.schema.json +0 -669
  45. package/src/schemas/build/stopRecord_v3.schema.json +0 -13
  46. package/src/schemas/build/stopRecording_v2.schema.json +0 -33
  47. package/src/schemas/build/test_v2.schema.json +0 -244
  48. package/src/schemas/build/test_v3.schema.json +0 -292
  49. package/src/schemas/build/typeKeys_v2.schema.json +0 -72
  50. package/src/schemas/build/type_v3.schema.json +0 -131
  51. package/src/schemas/build/wait_v2.schema.json +0 -42
  52. package/src/schemas/build/wait_v3.schema.json +0 -37
  53. package/src/schemas/dereferenceSchemas.cjs +0 -208
  54. package/src/schemas/index.ts +0 -6
  55. package/src/schemas/output_schemas/analytics_v1.schema.json +0 -585
  56. package/src/schemas/output_schemas/checkLink_v1.schema.json +0 -42
  57. package/src/schemas/output_schemas/checkLink_v2.schema.json +0 -80
  58. package/src/schemas/output_schemas/checkLink_v3.schema.json +0 -145
  59. package/src/schemas/output_schemas/click_v1.schema.json +0 -60
  60. package/src/schemas/output_schemas/click_v3.schema.json +0 -252
  61. package/src/schemas/output_schemas/config_v2.schema.json +0 -2628
  62. package/src/schemas/output_schemas/config_v3.schema.json +0 -16470
  63. package/src/schemas/output_schemas/context_v2.schema.json +0 -134
  64. package/src/schemas/output_schemas/context_v3.schema.json +0 -374
  65. package/src/schemas/output_schemas/dragAndDrop_v3.schema.json +0 -496
  66. package/src/schemas/output_schemas/endRecord_v3.schema.json +0 -12
  67. package/src/schemas/output_schemas/find_v1.schema.json +0 -171
  68. package/src/schemas/output_schemas/find_v2.schema.json +0 -184
  69. package/src/schemas/output_schemas/find_v3.schema.json +0 -1349
  70. package/src/schemas/output_schemas/goTo_v1.schema.json +0 -30
  71. package/src/schemas/output_schemas/goTo_v2.schema.json +0 -62
  72. package/src/schemas/output_schemas/goTo_v3.schema.json +0 -419
  73. package/src/schemas/output_schemas/httpRequest_v1.schema.json +0 -115
  74. package/src/schemas/output_schemas/httpRequest_v2.schema.json +0 -392
  75. package/src/schemas/output_schemas/httpRequest_v3.schema.json +0 -994
  76. package/src/schemas/output_schemas/loadCookie_v3.schema.json +0 -228
  77. package/src/schemas/output_schemas/loadVariables_v3.schema.json +0 -9
  78. package/src/schemas/output_schemas/matchText_v1.schema.json +0 -32
  79. package/src/schemas/output_schemas/moveMouse_v1.schema.json +0 -60
  80. package/src/schemas/output_schemas/moveTo_v2.schema.json +0 -98
  81. package/src/schemas/output_schemas/openApi_v2.schema.json +0 -75
  82. package/src/schemas/output_schemas/openApi_v3.schema.json +0 -162
  83. package/src/schemas/output_schemas/record_v3.schema.json +0 -101
  84. package/src/schemas/output_schemas/report_v3.schema.json +0 -16826
  85. package/src/schemas/output_schemas/resolvedTests_v3.schema.json +0 -33331
  86. package/src/schemas/output_schemas/runCode_v2.schema.json +0 -200
  87. package/src/schemas/output_schemas/runCode_v3.schema.json +0 -222
  88. package/src/schemas/output_schemas/runShell_v1.schema.json +0 -35
  89. package/src/schemas/output_schemas/runShell_v2.schema.json +0 -188
  90. package/src/schemas/output_schemas/runShell_v3.schema.json +0 -236
  91. package/src/schemas/output_schemas/saveCookie_v3.schema.json +0 -245
  92. package/src/schemas/output_schemas/saveScreenshot_v2.schema.json +0 -149
  93. package/src/schemas/output_schemas/screenshot_v1.schema.json +0 -48
  94. package/src/schemas/output_schemas/screenshot_v3.schema.json +0 -681
  95. package/src/schemas/output_schemas/scroll_v1.schema.json +0 -50
  96. package/src/schemas/output_schemas/setVariables_v2.schema.json +0 -38
  97. package/src/schemas/output_schemas/sourceIntegration_v3.schema.json +0 -50
  98. package/src/schemas/output_schemas/spec_v2.schema.json +0 -2301
  99. package/src/schemas/output_schemas/spec_v3.schema.json +0 -16630
  100. package/src/schemas/output_schemas/startRecording_v1.schema.json +0 -55
  101. package/src/schemas/output_schemas/startRecording_v2.schema.json +0 -56
  102. package/src/schemas/output_schemas/step_v3.schema.json +0 -7317
  103. package/src/schemas/output_schemas/stopRecord_v3.schema.json +0 -12
  104. package/src/schemas/output_schemas/stopRecording_v1.schema.json +0 -20
  105. package/src/schemas/output_schemas/stopRecording_v2.schema.json +0 -32
  106. package/src/schemas/output_schemas/test_v2.schema.json +0 -1903
  107. package/src/schemas/output_schemas/test_v3.schema.json +0 -15863
  108. package/src/schemas/output_schemas/typeKeys_v2.schema.json +0 -71
  109. package/src/schemas/output_schemas/type_v1.schema.json +0 -62
  110. package/src/schemas/output_schemas/type_v3.schema.json +0 -244
  111. package/src/schemas/output_schemas/wait_v1.schema.json +0 -42
  112. package/src/schemas/output_schemas/wait_v2.schema.json +0 -41
  113. package/src/schemas/output_schemas/wait_v3.schema.json +0 -41
  114. package/src/schemas/schemas.json +0 -121331
  115. package/src/schemas/src_schemas/analytics_v1.schema.json +0 -585
  116. package/src/schemas/src_schemas/checkLink_v1.schema.json +0 -42
  117. package/src/schemas/src_schemas/checkLink_v2.schema.json +0 -65
  118. package/src/schemas/src_schemas/checkLink_v3.schema.json +0 -91
  119. package/src/schemas/src_schemas/click_v1.schema.json +0 -60
  120. package/src/schemas/src_schemas/click_v3.schema.json +0 -144
  121. package/src/schemas/src_schemas/config_v2.schema.json +0 -929
  122. package/src/schemas/src_schemas/config_v3.schema.json +0 -633
  123. package/src/schemas/src_schemas/context_v2.schema.json +0 -108
  124. package/src/schemas/src_schemas/context_v3.schema.json +0 -202
  125. package/src/schemas/src_schemas/dragAndDrop_v3.schema.json +0 -185
  126. package/src/schemas/src_schemas/find_v1.schema.json +0 -137
  127. package/src/schemas/src_schemas/find_v2.schema.json +0 -155
  128. package/src/schemas/src_schemas/find_v3.schema.json +0 -210
  129. package/src/schemas/src_schemas/goTo_v1.schema.json +0 -30
  130. package/src/schemas/src_schemas/goTo_v2.schema.json +0 -58
  131. package/src/schemas/src_schemas/goTo_v3.schema.json +0 -232
  132. package/src/schemas/src_schemas/httpRequest_v1.schema.json +0 -115
  133. package/src/schemas/src_schemas/httpRequest_v2.schema.json +0 -284
  134. package/src/schemas/src_schemas/httpRequest_v3.schema.json +0 -402
  135. package/src/schemas/src_schemas/loadCookie_v3.schema.json +0 -113
  136. package/src/schemas/src_schemas/loadVariables_v3.schema.json +0 -9
  137. package/src/schemas/src_schemas/matchText_v1.schema.json +0 -32
  138. package/src/schemas/src_schemas/moveMouse_v1.schema.json +0 -60
  139. package/src/schemas/src_schemas/moveTo_v2.schema.json +0 -89
  140. package/src/schemas/src_schemas/openApi_v2.schema.json +0 -64
  141. package/src/schemas/src_schemas/openApi_v3.schema.json +0 -161
  142. package/src/schemas/src_schemas/record_v3.schema.json +0 -69
  143. package/src/schemas/src_schemas/report_v3.schema.json +0 -52
  144. package/src/schemas/src_schemas/resolvedTests_v3.schema.json +0 -237
  145. package/src/schemas/src_schemas/runCode_v2.schema.json +0 -181
  146. package/src/schemas/src_schemas/runCode_v3.schema.json +0 -137
  147. package/src/schemas/src_schemas/runShell_v1.schema.json +0 -35
  148. package/src/schemas/src_schemas/runShell_v2.schema.json +0 -166
  149. package/src/schemas/src_schemas/runShell_v3.schema.json +0 -155
  150. package/src/schemas/src_schemas/saveCookie_v3.schema.json +0 -124
  151. package/src/schemas/src_schemas/saveScreenshot_v2.schema.json +0 -129
  152. package/src/schemas/src_schemas/screenshot_v1.schema.json +0 -48
  153. package/src/schemas/src_schemas/screenshot_v3.schema.json +0 -249
  154. package/src/schemas/src_schemas/scroll_v1.schema.json +0 -50
  155. package/src/schemas/src_schemas/setVariables_v2.schema.json +0 -38
  156. package/src/schemas/src_schemas/sourceIntegration_v3.schema.json +0 -45
  157. package/src/schemas/src_schemas/spec_v2.schema.json +0 -175
  158. package/src/schemas/src_schemas/spec_v3.schema.json +0 -212
  159. package/src/schemas/src_schemas/startRecording_v1.schema.json +0 -55
  160. package/src/schemas/src_schemas/startRecording_v2.schema.json +0 -54
  161. package/src/schemas/src_schemas/step_v3.schema.json +0 -632
  162. package/src/schemas/src_schemas/stopRecord_v3.schema.json +0 -9
  163. package/src/schemas/src_schemas/stopRecording_v1.schema.json +0 -20
  164. package/src/schemas/src_schemas/stopRecording_v2.schema.json +0 -32
  165. package/src/schemas/src_schemas/test_v2.schema.json +0 -200
  166. package/src/schemas/src_schemas/test_v3.schema.json +0 -268
  167. package/src/schemas/src_schemas/typeKeys_v2.schema.json +0 -63
  168. package/src/schemas/src_schemas/type_v1.schema.json +0 -62
  169. package/src/schemas/src_schemas/type_v3.schema.json +0 -118
  170. package/src/schemas/src_schemas/wait_v1.schema.json +0 -42
  171. package/src/schemas/src_schemas/wait_v2.schema.json +0 -41
  172. package/src/schemas/src_schemas/wait_v3.schema.json +0 -36
  173. package/src/types/generated/checkLink_v3.ts +0 -29
  174. package/src/types/generated/click_v3.ts +0 -17
  175. package/src/types/generated/config_v3.ts +0 -405
  176. package/src/types/generated/context_v3.ts +0 -112
  177. package/src/types/generated/dragAndDrop_v3.ts +0 -39
  178. package/src/types/generated/endRecord_v3.ts +0 -10
  179. package/src/types/generated/find_v3.ts +0 -17
  180. package/src/types/generated/goTo_v3.ts +0 -48
  181. package/src/types/generated/httpRequest_v3.ts +0 -17
  182. package/src/types/generated/loadCookie_v3.ts +0 -17
  183. package/src/types/generated/loadVariables_v3.ts +0 -10
  184. package/src/types/generated/openApi_v3.ts +0 -64
  185. package/src/types/generated/record_v3.ts +0 -34
  186. package/src/types/generated/report_v3.ts +0 -183
  187. package/src/types/generated/resolvedTests_v3.ts +0 -585
  188. package/src/types/generated/runCode_v3.ts +0 -59
  189. package/src/types/generated/runShell_v3.ts +0 -58
  190. package/src/types/generated/saveCookie_v3.ts +0 -17
  191. package/src/types/generated/screenshot_v3.ts +0 -76
  192. package/src/types/generated/sourceIntegration_v3.ts +0 -31
  193. package/src/types/generated/spec_v3.ts +0 -166
  194. package/src/types/generated/step_v3.ts +0 -1288
  195. package/src/types/generated/stopRecord_v3.ts +0 -10
  196. package/src/types/generated/test_v3.ts +0 -3048
  197. package/src/types/generated/type_v3.ts +0 -56
  198. package/src/types/generated/wait_v3.ts +0 -13
  199. package/src/validate.ts +0 -627
  200. package/tsconfig.json +0 -22
@@ -1,402 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "title": "httpRequest",
4
- "description": "Perform a generic HTTP request, for example to an API.",
5
- "anyOf": [
6
- {
7
- "$ref": "#/components/schemas/url"
8
- },
9
- {
10
- "$ref": "#/components/schemas/object"
11
- }
12
- ],
13
- "components": {
14
- "schemas": {
15
- "url": {
16
- "title": "HTTP request (simple)",
17
- "type": "string",
18
- "description": "URL for the HTTP request.",
19
- "pattern": "(^(http://|https://).*|\\$[A-Za-z0-9_]+)",
20
- "transform": ["trim"]
21
- },
22
- "object": {
23
- "title": "HTTP request (detailed)",
24
- "type": "object",
25
- "anyOf": [
26
- {
27
- "required": ["url"]
28
- },
29
- {
30
- "required": ["openApi"]
31
- }
32
- ],
33
- "additionalProperties": false,
34
- "properties": {
35
- "url": {
36
- "$ref": "#/components/schemas/url"
37
- },
38
- "openApi": {
39
- "anyOf": [
40
- {
41
- "allOf": [
42
- {
43
- "$ref": "openApi_v3.schema.json#/components/schemas/operationId"
44
- },
45
- {
46
- "title": "Operation ID",
47
- "description": "Operation ID from the OpenAPI schema. Only valid if the OpenAPI description path is specified elsewhere and the operation ID is unique among all specified OpenAPI descriptions."
48
- }
49
- ]
50
- },
51
- {
52
- "allOf": [
53
- {
54
- "$ref": "openApi_v3.schema.json#"
55
- },
56
- {
57
- "type": "object",
58
- "required": ["operationId"],
59
- "title": "OpenAPI definition (httpRequest)"
60
- }
61
- ]
62
- }
63
- ]
64
- },
65
- "statusCodes": {
66
- "description": "Accepted status codes. If the specified URL returns a code other than what is specified here, the action fails.",
67
- "type": "array",
68
- "items": {
69
- "anyOf": [
70
- {
71
- "type": "integer"
72
- }
73
- ]
74
- },
75
- "default": [200, 201]
76
- },
77
- "method": {
78
- "type": "string",
79
- "description": "Method of the HTTP request",
80
- "enum": ["get", "put", "post", "patch", "delete"],
81
- "transform": ["trim", "toEnumCase"],
82
- "default": "get"
83
- },
84
- "timeout": {
85
- "type": "integer",
86
- "description": "Timeout for the HTTP request, in milliseconds.",
87
- "default": 60000
88
- },
89
- "request": {
90
- "type": "object",
91
- "additionalProperties": false,
92
- "properties": {
93
- "headers": {
94
- "description": "Headers to include in the HTTP request.",
95
- "default": {},
96
- "anyOf": [
97
- {
98
- "title": "Request headers (object)",
99
- "description": "Headers to include in the HTTP request, in key/value format.",
100
- "type": "object",
101
- "additionalProperties": true,
102
- "properties": {}
103
- },
104
- {
105
- "title": "Request headers (string)",
106
- "description": "Headers to include in the HTTP request, as return-separated values. For example, `Content-Type: application/json\nAuthorization: Bearer token`.",
107
- "type": "string"
108
- }
109
- ]
110
- },
111
- "parameters": {
112
- "description": "URL parameters to include in the HTTP request, in key/value format.",
113
- "type": "object",
114
- "additionalProperties": true,
115
- "default": {},
116
- "properties": {},
117
- "title": "Request parameters"
118
- },
119
- "body": {
120
- "description": "The body of the HTTP request.",
121
- "anyOf": [
122
- {
123
- "title": "Request body (object)",
124
- "description": "JSON object to include as the body of the HTTP request.",
125
- "type": "object",
126
- "additionalProperties": true,
127
- "properties": {}
128
- },
129
- {
130
- "title": "Request body (array)",
131
- "description": "JSON array to include as the body of the HTTP request.",
132
- "type": "array",
133
- "items": {}
134
- },
135
- {
136
- "title": "Request body (string)",
137
- "description": "String to include as the body of the HTTP request.",
138
- "type": "string"
139
- }
140
- ],
141
- "default": {}
142
- }
143
- },
144
- "title": "Request"
145
- },
146
- "response": {
147
- "type": "object",
148
- "additionalProperties": false,
149
- "properties": {
150
- "headers": {
151
- "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.",
152
- "type": "object",
153
- "additionalProperties": true,
154
- "properties": {},
155
- "default": {},
156
- "title": "Response headers"
157
- },
158
- "body": {
159
- "description": "JSON object expected in the response. If one or more key/value pairs aren't present in the response, the step fails.",
160
- "anyOf": [
161
- {
162
- "type": "object",
163
- "additionalProperties": true,
164
- "properties": {},
165
- "title": "Response body object",
166
- "description": "JSON key/value pairs expected in the response."
167
- },
168
- {
169
- "title": "Response body array",
170
- "description": "JSON array expected in the response.",
171
- "type": "array",
172
- "items": {}
173
- },
174
- {
175
- "title": "Response body string",
176
- "description": "String expected in the response.",
177
- "type": "string"
178
- }
179
- ],
180
- "default": {}
181
- },
182
- "required": {
183
- "type": "array",
184
- "description": "Array of field paths that must exist in the response body. Uses dot notation for nested fields (e.g., 'user.name') and bracket notation for array indices (e.g., 'items[0].id'). Fields must be present but may have any value including null.",
185
- "items": {
186
- "type": "string"
187
- },
188
- "default": []
189
- }
190
- },
191
- "title": "Response"
192
- },
193
- "allowAdditionalFields": {
194
- "type": "boolean",
195
- "description": "If `false`, the step fails when the response data contains fields not specified in the response body.",
196
- "default": true
197
- },
198
- "path": {
199
- "type": "string",
200
- "description": "File path to save the command's output, relative to `directory`. Specify a file extension that matches the expected response type, such as `.json` for JSON content or `.txt` for strings."
201
- },
202
- "directory": {
203
- "type": "string",
204
- "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."
205
- },
206
- "maxVariation": {
207
- "type": "number",
208
- "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 `path`, this value is ignored.",
209
- "default": 0,
210
- "minimum": 0,
211
- "maximum": 1
212
- },
213
- "overwrite": {
214
- "type": "string",
215
- "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`.",
216
- "enum": ["true", "false", "aboveVariation"],
217
- "default": "aboveVariation"
218
- }
219
- }
220
- }
221
- }
222
- },
223
- "examples": [
224
- "https://reqres.in/api/users",
225
- {
226
- "url": "https://reqres.in/api/users"
227
- },
228
- {
229
- "url": "https://reqres.in/api/users/2",
230
- "method": "put",
231
- "request": {
232
- "body": {
233
- "name": "morpheus",
234
- "job": "zion resident"
235
- }
236
- }
237
- },
238
- {
239
- "url": "https://reqres.in/api/users",
240
- "method": "post",
241
- "request": {
242
- "body": {
243
- "name": "morpheus",
244
- "job": "leader"
245
- }
246
- },
247
- "response": {
248
- "body": {
249
- "name": "morpheus",
250
- "job": "leader"
251
- }
252
- },
253
- "statusCodes": [200, 201]
254
- },
255
- {
256
- "url": "https://www.api-server.com",
257
- "method": "post",
258
- "timeout": 30000,
259
- "request": {
260
- "body": {
261
- "field": "value"
262
- },
263
- "headers": {
264
- "header": "value"
265
- },
266
- "parameters": {
267
- "param": "value"
268
- }
269
- },
270
- "response": {
271
- "body": {
272
- "field": "value"
273
- },
274
- "headers": {
275
- "header": "value"
276
- }
277
- },
278
- "statusCodes": [200]
279
- },
280
- {
281
- "url": "https://reqres.in/api/users",
282
- "method": "post",
283
- "request": {
284
- "body": {
285
- "name": "morpheus",
286
- "job": "leader"
287
- }
288
- },
289
- "response": {
290
- "body": {
291
- "name": "morpheus",
292
- "job": "leader"
293
- }
294
- },
295
- "statusCodes": [200, 201],
296
- "path": "response.json",
297
- "directory": "media",
298
- "maxVariation": 0.05,
299
- "overwrite": "aboveVariation"
300
- },
301
- {
302
- "openApi": "getUserById"
303
- },
304
- {
305
- "openApi": {
306
- "name": "Reqres",
307
- "operationId": "getUserById"
308
- },
309
- "request": {
310
- "parameters": {
311
- "id": 123
312
- }
313
- }
314
- },
315
- {
316
- "openApi": {
317
- "descriptionPath": "https://api.example.com/openapi.json",
318
- "operationId": "getUserById"
319
- },
320
- "request": {
321
- "parameters": {
322
- "id": 123
323
- }
324
- }
325
- },
326
- {
327
- "openApi": {
328
- "descriptionPath": "https://api.example.com/openapi.json",
329
- "operationId": "createUser",
330
- "useExample": "both"
331
- }
332
- },
333
- {
334
- "openApi": {
335
- "descriptionPath": "https://api.example.com/openapi.json",
336
- "operationId": "updateUser",
337
- "useExample": "request",
338
- "exampleKey": "acme"
339
- }
340
- },
341
- {
342
- "openApi": {
343
- "descriptionPath": "https://api.example.com/openapi.json",
344
- "operationId": "updateUser",
345
- "useExample": "request",
346
- "exampleKey": "acme",
347
- "headers": {
348
- "Authorization": "Bearer $TOKEN"
349
- }
350
- }
351
- },
352
- {
353
- "url": "https://www.api-server.com",
354
- "method": "post",
355
- "request": {
356
- "headers": "Content-Type: application/json\\nAuthorization: Bearer token"
357
- }
358
- },
359
- {
360
- "url": "https://api.example.com/users/123",
361
- "response": {
362
- "required": ["id", "email", "createdAt"]
363
- }
364
- },
365
- {
366
- "url": "https://api.example.com/users/123",
367
- "response": {
368
- "required": [
369
- "user.profile.name",
370
- "user.profile.avatar",
371
- "user.settings.notifications"
372
- ]
373
- }
374
- },
375
- {
376
- "url": "https://api.example.com/orders",
377
- "response": {
378
- "required": [
379
- "orders[0].id",
380
- "orders[0].total",
381
- "orders[0].items[0].productId"
382
- ]
383
- }
384
- },
385
- {
386
- "url": "https://api.example.com/users",
387
- "response": {
388
- "required": [
389
- "sessionToken",
390
- "expiresAt",
391
- "user.id"
392
- ],
393
- "body": {
394
- "status": "success",
395
- "user": {
396
- "role": "admin"
397
- }
398
- }
399
- }
400
- }
401
- ]
402
- }
@@ -1,113 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "title": "loadCookie",
4
- "description": "Load a specific cookie 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": "Cookie name or file path",
18
- "description": "Name of the specific cookie to load from default location, or file path to cookie file.",
19
- "pattern": "^[A-Za-z0-9_./\\-]+$",
20
- "transform": ["trim"]
21
- },
22
- "object": {
23
- "type": "object",
24
- "additionalProperties": false,
25
- "required": ["name"],
26
- "anyOf": [
27
- {
28
- "required": ["path"],
29
- "not": {
30
- "required": ["variable"]
31
- }
32
- },
33
- {
34
- "required": ["variable"],
35
- "not": {
36
- "anyOf": [
37
- {
38
- "required": ["path"]
39
- },
40
- {
41
- "required": ["directory"]
42
- }
43
- ]
44
- }
45
- }
46
- ],
47
- "properties": {
48
- "$schema": {
49
- "description": "Optional self-describing schema URI for linters",
50
- "type": "string",
51
- "format": "uri-reference"
52
- },
53
- "name": {
54
- "type": "string",
55
- "title": "Cookie name",
56
- "description": "Name of the specific cookie to load.",
57
- "pattern": "^[A-Za-z0-9_.-]+$",
58
- "transform": ["trim"]
59
- },
60
- "variable": {
61
- "type": "string",
62
- "title": "Environment variable name",
63
- "description": "Environment variable name containing the cookie as JSON string.",
64
- "pattern": "^[A-Za-z_][A-Za-z0-9_]*$",
65
- "transform": ["trim"]
66
- },
67
- "path": {
68
- "type": "string",
69
- "title": "Cookie file path",
70
- "description": "File path to cookie file, relative to directory. Supports Netscape cookie format.",
71
- "transform": ["trim"]
72
- },
73
- "directory": {
74
- "type": "string",
75
- "title": "Directory path",
76
- "description": "Directory containing the cookie file.",
77
- "transform": ["trim"]
78
- },
79
- "domain": {
80
- "type": "string",
81
- "title": "Cookie domain",
82
- "description": "Specific domain to filter the cookie by when loading from multi-cookie file (optional).",
83
- "transform": ["trim"]
84
- }
85
- },
86
- "title": "Load cookie (detailed)"
87
- }
88
- }
89
- },
90
- "examples": [
91
- "session_token",
92
- "./test-data/auth-session.txt",
93
- "test_env_cookie",
94
- {
95
- "name": "auth_cookie",
96
- "variable": "AUTH_COOKIE"
97
- },
98
- {
99
- "name": "test_cookie",
100
- "path": "test-cookie.txt"
101
- },
102
- {
103
- "name": "session_token",
104
- "path": "session-token.txt",
105
- "directory": "./test-data"
106
- },
107
- {
108
- "name": "user_session",
109
- "path": "saved-cookies.txt",
110
- "domain": "app.example.com"
111
- }
112
- ]
113
- }
@@ -1,9 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "title": "loadVariables",
4
- "type": "string",
5
- "description": "Load environment variables from the specified `.env` file.",
6
- "examples": [
7
- ".env"
8
- ]
9
- }
@@ -1,32 +0,0 @@
1
- {
2
- "title": "matchText",
3
- "type": "object",
4
- "description": "Check if an element displays the expected text.",
5
- "properties": {
6
- "action": {
7
- "type": "string",
8
- "const": "matchText"
9
- },
10
- "css": {
11
- "type": "string",
12
- "description": "CSS selector that uniquely identified the element."
13
- },
14
- "text": {
15
- "type": "string",
16
- "description": "Text that the element should display."
17
- }
18
- },
19
- "required": [
20
- "action",
21
- "css",
22
- "text"
23
- ],
24
- "additionalProperties": false,
25
- "examples": [
26
- {
27
- "action": "matchText",
28
- "css": "#gbqfbb",
29
- "text": "I'm Feeling Lucky"
30
- }
31
- ]
32
- }
@@ -1,60 +0,0 @@
1
- {
2
- "title": "moveMouse",
3
- "type": "object",
4
- "description": "Move the mouse to an element specified by a CSS selector. Only runs if a test is being recorded.",
5
- "properties": {
6
- "action": {
7
- "type": "string",
8
- "const": "moveMouse"
9
- },
10
- "css": {
11
- "type": "string",
12
- "description": "CSS selector that uniquely identified the element."
13
- },
14
- "alignH": {
15
- "type": "string",
16
- "description": "Horizontal alignment of the mouse to the element.",
17
- "enum": [
18
- "left",
19
- "center",
20
- "right"
21
- ]
22
- },
23
- "alignV": {
24
- "type": "string",
25
- "description": "Vertical alignment of the mouse to the element.",
26
- "enum": [
27
- "top",
28
- "center",
29
- "bottom"
30
- ]
31
- },
32
- "offsetX": {
33
- "type": "integer",
34
- "description": "Number of pixels to offset the mouse along the X axis, relative to the element center. Positive values offset to the right. Negative values offset to the left."
35
- },
36
- "offsetY": {
37
- "type": "integer",
38
- "description": "Number of pixels to offset the mouse along the Y axis, relative to the element center. Positive values offset to the top. Negative values offset to the bottom."
39
- }
40
- },
41
- "required": [
42
- "action",
43
- "css"
44
- ],
45
- "additionalProperties": false,
46
- "examples": [
47
- {
48
- "action": "moveMouse",
49
- "css": "[title=Search]"
50
- },
51
- {
52
- "action": "moveMouse",
53
- "css": "[title=Search]",
54
- "alignH": "center",
55
- "alignV": "center",
56
- "offsetX": 10,
57
- "offsetY": 10
58
- }
59
- ]
60
- }