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.
- 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,633 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"title": "config",
|
|
4
|
-
"description": "Configuration options for Doc Detective operations.",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"additionalProperties": false,
|
|
7
|
-
"dynamicDefaults": {
|
|
8
|
-
"configId": "uuid"
|
|
9
|
-
},
|
|
10
|
-
"properties": {
|
|
11
|
-
"$schema": {
|
|
12
|
-
"description": "JSON Schema for this object.",
|
|
13
|
-
"type": "string",
|
|
14
|
-
"enum": [
|
|
15
|
-
"https://raw.githubusercontent.com/doc-detective/common/refs/heads/main/dist/schemas/config_v3.schema.json"
|
|
16
|
-
]
|
|
17
|
-
},
|
|
18
|
-
"configId": {
|
|
19
|
-
"description": "Identifier for the configuration.",
|
|
20
|
-
"type": "string"
|
|
21
|
-
},
|
|
22
|
-
"configPath": {
|
|
23
|
-
"description": "Path to the configuration file.",
|
|
24
|
-
"type": "string",
|
|
25
|
-
"readOnly": true
|
|
26
|
-
},
|
|
27
|
-
"input": {
|
|
28
|
-
"description": "Path(s) to test specifications and documentation source files. May be paths to specific files or to directories to scan for files.",
|
|
29
|
-
"default": ".",
|
|
30
|
-
"anyOf": [
|
|
31
|
-
{
|
|
32
|
-
"$ref": "#/components/schemas/stringOrArray"
|
|
33
|
-
}
|
|
34
|
-
]
|
|
35
|
-
},
|
|
36
|
-
"output": {
|
|
37
|
-
"description": "Path of the directory in which to store the output of Doc Detective commands. If a file path is specified, Doc Detective attempts to honor the file name specified, but file path behavior is controlled by the configured reporters.",
|
|
38
|
-
"type": "string",
|
|
39
|
-
"default": "."
|
|
40
|
-
},
|
|
41
|
-
"recursive": {
|
|
42
|
-
"description": "If `true` searches `input`, `setup`, and `cleanup` paths recursively for test specifications and source files.",
|
|
43
|
-
"type": "boolean",
|
|
44
|
-
"default": true
|
|
45
|
-
},
|
|
46
|
-
"relativePathBase": {
|
|
47
|
-
"description": "Whether paths should be interpreted as relative to the current working directory (`cwd`) or to the file in which they're specified (`file`).",
|
|
48
|
-
"type": "string",
|
|
49
|
-
"enum": ["cwd", "file"],
|
|
50
|
-
"default": "file"
|
|
51
|
-
},
|
|
52
|
-
"loadVariables": {
|
|
53
|
-
"$ref": "loadVariables_v3.schema.json#"
|
|
54
|
-
},
|
|
55
|
-
"origin": {
|
|
56
|
-
"description": "Default protocol and domain to use for relative URLs.",
|
|
57
|
-
"type": "string"
|
|
58
|
-
},
|
|
59
|
-
"beforeAny": {
|
|
60
|
-
"description": "Path(s) to test specifications to perform before those specified by `input`. Useful for setting up testing environments.",
|
|
61
|
-
"anyOf": [
|
|
62
|
-
{
|
|
63
|
-
"type": "string"
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
"type": "array",
|
|
67
|
-
"items": {
|
|
68
|
-
"anyOf": [
|
|
69
|
-
{
|
|
70
|
-
"type": "string"
|
|
71
|
-
}
|
|
72
|
-
]
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
]
|
|
76
|
-
},
|
|
77
|
-
"afterAll": {
|
|
78
|
-
"description": "Path(s) to test specifications to perform after those specified by `input`. Useful for cleaning up testing environments.",
|
|
79
|
-
"anyOf": [
|
|
80
|
-
{
|
|
81
|
-
"type": "string"
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
"type": "array",
|
|
85
|
-
"items": {
|
|
86
|
-
"anyOf": [
|
|
87
|
-
{
|
|
88
|
-
"type": "string"
|
|
89
|
-
}
|
|
90
|
-
]
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
]
|
|
94
|
-
},
|
|
95
|
-
"detectSteps": {
|
|
96
|
-
"type": "boolean",
|
|
97
|
-
"description": "Whether or not to detect steps in input files based on defined markup.",
|
|
98
|
-
"default": true
|
|
99
|
-
},
|
|
100
|
-
"allowUnsafeSteps": {
|
|
101
|
-
"type": "boolean",
|
|
102
|
-
"description": "Whether or not to run potentially unsafe steps, such as those that might modify files or system state."
|
|
103
|
-
},
|
|
104
|
-
"crawl": {
|
|
105
|
-
"description": "If `true`, crawls sitemap.xml files specified by URL to find additional files to test.",
|
|
106
|
-
"type": "boolean",
|
|
107
|
-
"default": false
|
|
108
|
-
},
|
|
109
|
-
"processDitaMaps": {
|
|
110
|
-
"description": "If `true`, processes DITA maps and includes generated files as inputs.",
|
|
111
|
-
"type": "boolean",
|
|
112
|
-
"default": true
|
|
113
|
-
},
|
|
114
|
-
"logLevel": {
|
|
115
|
-
"description": "Amount of detail to output when performing an operation.",
|
|
116
|
-
"type": "string",
|
|
117
|
-
"enum": ["silent", "error", "warning", "info", "debug"],
|
|
118
|
-
"default": "info"
|
|
119
|
-
},
|
|
120
|
-
"runOn": {
|
|
121
|
-
"$ref": "test_v3.schema.json#/properties/runOn"
|
|
122
|
-
},
|
|
123
|
-
"fileTypes": {
|
|
124
|
-
"description": "Configuration for file types and their markup detection.",
|
|
125
|
-
"default": ["markdown", "asciidoc", "html", "dita"],
|
|
126
|
-
"anyOf": [
|
|
127
|
-
{
|
|
128
|
-
"type": "array",
|
|
129
|
-
"minItems": 1,
|
|
130
|
-
"items": {
|
|
131
|
-
"anyOf": [
|
|
132
|
-
{
|
|
133
|
-
"$comment": "Simple mode: Reference predefined templates by name.",
|
|
134
|
-
"title": "File type (predefined)",
|
|
135
|
-
"type": "string",
|
|
136
|
-
"enum": ["markdown", "asciidoc", "html", "dita"]
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
"$comment": "Custom mode: Extend predefined templates or write whole new ones.",
|
|
140
|
-
"title": "File type (custom)",
|
|
141
|
-
"type": "object",
|
|
142
|
-
"anyOf": [
|
|
143
|
-
{ "required": ["extensions"] },
|
|
144
|
-
{ "required": ["extends"] }
|
|
145
|
-
],
|
|
146
|
-
"properties": {
|
|
147
|
-
"name": {
|
|
148
|
-
"description": "Name of the file type.",
|
|
149
|
-
"type": "string"
|
|
150
|
-
},
|
|
151
|
-
"extends": {
|
|
152
|
-
"description": "Base template to extend.",
|
|
153
|
-
"type": "string",
|
|
154
|
-
"enum": ["markdown", "asciidoc", "html"]
|
|
155
|
-
},
|
|
156
|
-
"extensions": {
|
|
157
|
-
"description": "File extensions to use with type.",
|
|
158
|
-
"anyOf": [
|
|
159
|
-
{
|
|
160
|
-
"$ref": "#/components/schemas/stringOrArray"
|
|
161
|
-
}
|
|
162
|
-
]
|
|
163
|
-
},
|
|
164
|
-
"inlineStatements": {
|
|
165
|
-
"$ref": "#/components/schemas/inlineStatements"
|
|
166
|
-
},
|
|
167
|
-
"markup": {
|
|
168
|
-
"description": "Markup definitions for the file type.",
|
|
169
|
-
"type": "array",
|
|
170
|
-
"minItems": 1,
|
|
171
|
-
"items": {
|
|
172
|
-
"$ref": "#/components/schemas/markupDefinition"
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
"title": "File type (executable)",
|
|
179
|
-
"$comment": "Executable mode: Convert executable inputs directly into tests.",
|
|
180
|
-
"type": "object",
|
|
181
|
-
"required": ["extensions"],
|
|
182
|
-
"properties": {
|
|
183
|
-
"extensions": {
|
|
184
|
-
"description": "File extensions to use with type.",
|
|
185
|
-
"anyOf": [
|
|
186
|
-
{
|
|
187
|
-
"$ref": "#/components/schemas/stringOrArray"
|
|
188
|
-
}
|
|
189
|
-
]
|
|
190
|
-
},
|
|
191
|
-
"runShell": {
|
|
192
|
-
"description": "`runShell` step to perform for this file type. Use $1 as a placeholder for the file path.",
|
|
193
|
-
"anyOf": [
|
|
194
|
-
{
|
|
195
|
-
"$ref": "runShell_v3.schema.json#"
|
|
196
|
-
}
|
|
197
|
-
]
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
]
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
]
|
|
205
|
-
},
|
|
206
|
-
"integrations": {
|
|
207
|
-
"description": "Options for connecting to external services.",
|
|
208
|
-
"type": "object",
|
|
209
|
-
"additionalProperties": false,
|
|
210
|
-
"properties": {
|
|
211
|
-
"openApi": {
|
|
212
|
-
"$ref": "test_v3.schema.json#/properties/openApi"
|
|
213
|
-
},
|
|
214
|
-
"docDetectiveApi": {
|
|
215
|
-
"type": "object",
|
|
216
|
-
"description": "Configuration for Doc Detective Orchestration API integration.",
|
|
217
|
-
"additionalProperties": false,
|
|
218
|
-
"properties": {
|
|
219
|
-
"apiKey": {
|
|
220
|
-
"type": "string",
|
|
221
|
-
"description": "API key for authenticating with the Doc Detective Orchestration API."
|
|
222
|
-
}
|
|
223
|
-
},
|
|
224
|
-
"title": "Doc Detective Orchestration API"
|
|
225
|
-
},
|
|
226
|
-
"heretto": {
|
|
227
|
-
"type": "array",
|
|
228
|
-
"description": "Configuration for Heretto CMS integrations. Each entry specifies a Heretto instance and a scenario to build and test.",
|
|
229
|
-
"items": {
|
|
230
|
-
"type": "object",
|
|
231
|
-
"additionalProperties": false,
|
|
232
|
-
"required": ["name", "organizationId", "username", "apiToken"],
|
|
233
|
-
"properties": {
|
|
234
|
-
"name": {
|
|
235
|
-
"type": "string",
|
|
236
|
-
"description": "Unique identifier for this Heretto integration. Used in logs and results."
|
|
237
|
-
},
|
|
238
|
-
"organizationId": {
|
|
239
|
-
"type": "string",
|
|
240
|
-
"description": "The organization subdomain used to access Heretto CCMS (e.g., 'thunderbird' for thunderbird.heretto.com)."
|
|
241
|
-
},
|
|
242
|
-
"username": {
|
|
243
|
-
"type": "string",
|
|
244
|
-
"description": "Heretto CCMS username (email address) for API authentication."
|
|
245
|
-
},
|
|
246
|
-
"apiToken": {
|
|
247
|
-
"format": "password",
|
|
248
|
-
"minLength": 1,
|
|
249
|
-
"type": "string",
|
|
250
|
-
"description": "API token generated in Heretto CCMS for authentication. See https://help.heretto.com/en/heretto-ccms/api/ccms-api-authentication/basic-authentication#ariaid-title3"
|
|
251
|
-
},
|
|
252
|
-
"scenarioName": {
|
|
253
|
-
"type": "string",
|
|
254
|
-
"description": "Name of the scenario to build and test.",
|
|
255
|
-
"default": "Doc Detective"
|
|
256
|
-
},
|
|
257
|
-
"outputPath": {
|
|
258
|
-
"type": "string",
|
|
259
|
-
"description": "Local path where Heretto content was downloaded. Set automatically during processing.",
|
|
260
|
-
"readOnly": true
|
|
261
|
-
},
|
|
262
|
-
"fileMapping": {
|
|
263
|
-
"type": "object",
|
|
264
|
-
"description": "Mapping of local file paths to Heretto file metadata. Set automatically during content loading.",
|
|
265
|
-
"readOnly": true,
|
|
266
|
-
"additionalProperties": {
|
|
267
|
-
"type": "object",
|
|
268
|
-
"properties": {
|
|
269
|
-
"fileId": {
|
|
270
|
-
"type": "string",
|
|
271
|
-
"description": "The UUID of the file in Heretto."
|
|
272
|
-
},
|
|
273
|
-
"filePath": {
|
|
274
|
-
"type": "string",
|
|
275
|
-
"description": "The path of the file in Heretto."
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
},
|
|
280
|
-
"uploadOnChange": {
|
|
281
|
-
"type": "boolean",
|
|
282
|
-
"description": "If `true`, uploads changed screenshots and other media files back to Heretto CMS after test execution.",
|
|
283
|
-
"default": false
|
|
284
|
-
},
|
|
285
|
-
"resourceDependencies": {
|
|
286
|
-
"type": "object",
|
|
287
|
-
"description": "Mapping of Heretto file paths to their UUIDs and metadata. Set automatically during content loading by fetching ditamap resource dependencies.",
|
|
288
|
-
"readOnly": true,
|
|
289
|
-
"additionalProperties": {
|
|
290
|
-
"type": "object",
|
|
291
|
-
"properties": {
|
|
292
|
-
"uuid": {
|
|
293
|
-
"type": "string",
|
|
294
|
-
"description": "The UUID of the file in Heretto."
|
|
295
|
-
},
|
|
296
|
-
"fullPath": {
|
|
297
|
-
"type": "string",
|
|
298
|
-
"description": "The full xmldb path of the file in Heretto."
|
|
299
|
-
},
|
|
300
|
-
"name": {
|
|
301
|
-
"type": "string",
|
|
302
|
-
"description": "The file name."
|
|
303
|
-
},
|
|
304
|
-
"parentFolderId": {
|
|
305
|
-
"type": "string",
|
|
306
|
-
"description": "The UUID of the parent folder in Heretto."
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
},
|
|
312
|
-
"title": "Heretto CMS integration"
|
|
313
|
-
},
|
|
314
|
-
"title": "Heretto CMS integrations"
|
|
315
|
-
}
|
|
316
|
-
},
|
|
317
|
-
"title": "Integrations options"
|
|
318
|
-
},
|
|
319
|
-
"telemetry": {
|
|
320
|
-
"description": "Options around sending telemetry for Doc Detective usage.",
|
|
321
|
-
"type": "object",
|
|
322
|
-
"additionalProperties": false,
|
|
323
|
-
"properties": {
|
|
324
|
-
"send": {
|
|
325
|
-
"description": "If `true`, sends Doc Detective telemetry.",
|
|
326
|
-
"type": "boolean",
|
|
327
|
-
"default": true
|
|
328
|
-
},
|
|
329
|
-
"userId": {
|
|
330
|
-
"description": "Identifier for the organization, group, or individual running Doc Detective.",
|
|
331
|
-
"type": "string"
|
|
332
|
-
}
|
|
333
|
-
},
|
|
334
|
-
"required": ["send"],
|
|
335
|
-
"default": {
|
|
336
|
-
"send": true
|
|
337
|
-
},
|
|
338
|
-
"title": "Telemetry options"
|
|
339
|
-
},
|
|
340
|
-
"concurrentRunners": {
|
|
341
|
-
"type": ["integer", "boolean"],
|
|
342
|
-
"default": 1,
|
|
343
|
-
"minimum": 1,
|
|
344
|
-
"description": "Number of concurrent test runners. Set to true to use CPU core count (capped at 4).",
|
|
345
|
-
"not": {
|
|
346
|
-
"const": false
|
|
347
|
-
}
|
|
348
|
-
},
|
|
349
|
-
"environment": {
|
|
350
|
-
"$ref": "#/components/schemas/environment"
|
|
351
|
-
},
|
|
352
|
-
"debug": {
|
|
353
|
-
"description": "Enable debugging mode. `true` allows pausing on breakpoints, waiting for user input before continuing. `stepThrough` pauses at every step, waiting for user input before continuing. `false` disables all debugging.",
|
|
354
|
-
"anyOf": [
|
|
355
|
-
{
|
|
356
|
-
"type": "boolean"
|
|
357
|
-
},
|
|
358
|
-
{
|
|
359
|
-
"type": "string",
|
|
360
|
-
"enum": ["stepThrough"]
|
|
361
|
-
}
|
|
362
|
-
],
|
|
363
|
-
"default": false
|
|
364
|
-
}
|
|
365
|
-
},
|
|
366
|
-
"components": {
|
|
367
|
-
"schemas": {
|
|
368
|
-
"environment": {
|
|
369
|
-
"type": "object",
|
|
370
|
-
"description": "Environment information for the system running Doc Detective.",
|
|
371
|
-
"readOnly": true,
|
|
372
|
-
"additionalProperties": false,
|
|
373
|
-
"required": ["platform"],
|
|
374
|
-
"properties": {
|
|
375
|
-
"workingDirectory": {
|
|
376
|
-
"description": "The current working directory of the process running Doc Detective.",
|
|
377
|
-
"type": "string"
|
|
378
|
-
},
|
|
379
|
-
"platform": {
|
|
380
|
-
"description": "The operating system type running Doc Detective.",
|
|
381
|
-
"type": "string",
|
|
382
|
-
"enum": ["linux", "mac", "windows"]
|
|
383
|
-
},
|
|
384
|
-
"arch": {
|
|
385
|
-
"description": "The processor architecture of the system running Doc Detective.",
|
|
386
|
-
"type": "string",
|
|
387
|
-
"enum": ["arm32", "arm64", "x32", "x64"]
|
|
388
|
-
}
|
|
389
|
-
},
|
|
390
|
-
"title": "Environment details"
|
|
391
|
-
},
|
|
392
|
-
"markupDefinition": {
|
|
393
|
-
"type": "object",
|
|
394
|
-
"properties": {
|
|
395
|
-
"name": {
|
|
396
|
-
"description": "Name of the markup definition",
|
|
397
|
-
"type": "string"
|
|
398
|
-
},
|
|
399
|
-
"regex": {
|
|
400
|
-
"description": "Regular expressions to match the markup type.",
|
|
401
|
-
"anyOf": [
|
|
402
|
-
{
|
|
403
|
-
"$ref": "#/components/schemas/stringOrArray"
|
|
404
|
-
}
|
|
405
|
-
]
|
|
406
|
-
},
|
|
407
|
-
"batchMatches": {
|
|
408
|
-
"description": "If `true`, all matches are combined into a single string.",
|
|
409
|
-
"type": "boolean",
|
|
410
|
-
"default": false
|
|
411
|
-
},
|
|
412
|
-
"actions": {
|
|
413
|
-
"description": "Actions to perform when the markup type is detected.",
|
|
414
|
-
"anyOf": [
|
|
415
|
-
{
|
|
416
|
-
"$ref": "#/components/schemas/markupActionString"
|
|
417
|
-
},
|
|
418
|
-
{
|
|
419
|
-
"type": "array",
|
|
420
|
-
"items": {
|
|
421
|
-
"anyOf": [
|
|
422
|
-
{
|
|
423
|
-
"$ref": "#/components/schemas/markupActionString"
|
|
424
|
-
},
|
|
425
|
-
{
|
|
426
|
-
"$ref": "step_v3.schema.json#"
|
|
427
|
-
}
|
|
428
|
-
]
|
|
429
|
-
}
|
|
430
|
-
}
|
|
431
|
-
]
|
|
432
|
-
}
|
|
433
|
-
},
|
|
434
|
-
"title": "Markup definition"
|
|
435
|
-
},
|
|
436
|
-
"markupActionString": {
|
|
437
|
-
"type": "string",
|
|
438
|
-
"enum": [
|
|
439
|
-
"checkLink",
|
|
440
|
-
"click",
|
|
441
|
-
"find",
|
|
442
|
-
"goTo",
|
|
443
|
-
"httpRequest",
|
|
444
|
-
"loadCookie",
|
|
445
|
-
"loadVariables",
|
|
446
|
-
"record",
|
|
447
|
-
"runCode",
|
|
448
|
-
"runShell",
|
|
449
|
-
"saveCookie",
|
|
450
|
-
"screenshot",
|
|
451
|
-
"stopRecord",
|
|
452
|
-
"type",
|
|
453
|
-
"wait"
|
|
454
|
-
]
|
|
455
|
-
},
|
|
456
|
-
"inlineStatements": {
|
|
457
|
-
"description": "Statements to include tests and steps inside the content of the file, such as within Markdown.",
|
|
458
|
-
"type": "object",
|
|
459
|
-
"properties": {
|
|
460
|
-
"testStart": {
|
|
461
|
-
"description": "Regular expressions that indicate the start of a test. If capture groups are used, the first capture group is used for the statement. If no capture groups are used, the entire match is used for the statement.",
|
|
462
|
-
"anyOf": [
|
|
463
|
-
{
|
|
464
|
-
"$ref": "#/components/schemas/stringOrArray"
|
|
465
|
-
}
|
|
466
|
-
]
|
|
467
|
-
},
|
|
468
|
-
"testEnd": {
|
|
469
|
-
"description": "Regular expressions that indicate that the current test is complete.",
|
|
470
|
-
"anyOf": [
|
|
471
|
-
{
|
|
472
|
-
"$ref": "#/components/schemas/stringOrArray"
|
|
473
|
-
}
|
|
474
|
-
]
|
|
475
|
-
},
|
|
476
|
-
"ignoreStart": {
|
|
477
|
-
"description": "Regular expressions that indicates that the following content should be ignored for testing purposes.",
|
|
478
|
-
"anyOf": [
|
|
479
|
-
{
|
|
480
|
-
"$ref": "#/components/schemas/stringOrArray"
|
|
481
|
-
}
|
|
482
|
-
]
|
|
483
|
-
},
|
|
484
|
-
"ignoreEnd": {
|
|
485
|
-
"description": "Regular expressions that indicate that the ignored section of content is complete.",
|
|
486
|
-
"anyOf": [
|
|
487
|
-
{
|
|
488
|
-
"$ref": "#/components/schemas/stringOrArray"
|
|
489
|
-
}
|
|
490
|
-
]
|
|
491
|
-
},
|
|
492
|
-
"step": {
|
|
493
|
-
"description": "Regular expressions that indicate a step in a test.",
|
|
494
|
-
"anyOf": [
|
|
495
|
-
{
|
|
496
|
-
"$ref": "#/components/schemas/stringOrArray"
|
|
497
|
-
}
|
|
498
|
-
]
|
|
499
|
-
}
|
|
500
|
-
},
|
|
501
|
-
"title": "Inline statement definition"
|
|
502
|
-
},
|
|
503
|
-
"stringOrArray": {
|
|
504
|
-
"anyOf": [
|
|
505
|
-
{
|
|
506
|
-
"type": "string"
|
|
507
|
-
},
|
|
508
|
-
{
|
|
509
|
-
"type": "array",
|
|
510
|
-
"minItems": 1,
|
|
511
|
-
"items": {
|
|
512
|
-
"type": "string"
|
|
513
|
-
}
|
|
514
|
-
}
|
|
515
|
-
]
|
|
516
|
-
}
|
|
517
|
-
}
|
|
518
|
-
},
|
|
519
|
-
"examples": [
|
|
520
|
-
{},
|
|
521
|
-
{
|
|
522
|
-
"input": ".",
|
|
523
|
-
"output": ".",
|
|
524
|
-
"recursive": true,
|
|
525
|
-
"loadVariables": ".env",
|
|
526
|
-
"fileTypes": ["markdown"]
|
|
527
|
-
},
|
|
528
|
-
{
|
|
529
|
-
"fileTypes": [
|
|
530
|
-
{
|
|
531
|
-
"extends": "markdown",
|
|
532
|
-
"extensions": ["md", "markdown", "mdx"],
|
|
533
|
-
"inlineStatements": {
|
|
534
|
-
"testStart": "<!--\\s*testStart\\s*(.*?)\\s*-->",
|
|
535
|
-
"testEnd": "<!-- testEnd -->",
|
|
536
|
-
"ignoreStart": "<!-- ignoreStart -->",
|
|
537
|
-
"ignoreEnd": "<!-- ignoreEnd -->",
|
|
538
|
-
"step": "<!--\\s*step\\s*(.*?)\\s*-->"
|
|
539
|
-
},
|
|
540
|
-
"markup": [
|
|
541
|
-
{
|
|
542
|
-
"name": "onscreenText",
|
|
543
|
-
"regex": "\\*\\*.+?\\*\\*",
|
|
544
|
-
"actions": "find"
|
|
545
|
-
}
|
|
546
|
-
]
|
|
547
|
-
}
|
|
548
|
-
]
|
|
549
|
-
},
|
|
550
|
-
{
|
|
551
|
-
"fileTypes": [
|
|
552
|
-
{
|
|
553
|
-
"name": "Jupyter Notebooks",
|
|
554
|
-
"extensions": "ipynb",
|
|
555
|
-
"runShell": {
|
|
556
|
-
"command": "jupyter",
|
|
557
|
-
"args": [
|
|
558
|
-
"nbconvert",
|
|
559
|
-
"--to",
|
|
560
|
-
"script",
|
|
561
|
-
"--execute",
|
|
562
|
-
"$1",
|
|
563
|
-
"--stdout"
|
|
564
|
-
]
|
|
565
|
-
}
|
|
566
|
-
},
|
|
567
|
-
{
|
|
568
|
-
"name": "JavaScript",
|
|
569
|
-
"extensions": "js",
|
|
570
|
-
"runShell": {
|
|
571
|
-
"command": "node $1"
|
|
572
|
-
}
|
|
573
|
-
},
|
|
574
|
-
{
|
|
575
|
-
"name": "Python",
|
|
576
|
-
"extensions": "py",
|
|
577
|
-
"runShell": {
|
|
578
|
-
"command": "python $1"
|
|
579
|
-
}
|
|
580
|
-
}
|
|
581
|
-
]
|
|
582
|
-
},
|
|
583
|
-
{
|
|
584
|
-
"environment": {
|
|
585
|
-
"platform": "windows",
|
|
586
|
-
"arch": "x64"
|
|
587
|
-
}
|
|
588
|
-
},
|
|
589
|
-
{
|
|
590
|
-
"concurrentRunners": 1
|
|
591
|
-
},
|
|
592
|
-
{
|
|
593
|
-
"concurrentRunners": true
|
|
594
|
-
},
|
|
595
|
-
{
|
|
596
|
-
"concurrentRunners": 4
|
|
597
|
-
},
|
|
598
|
-
{
|
|
599
|
-
"debug": false
|
|
600
|
-
},
|
|
601
|
-
{
|
|
602
|
-
"debug": true
|
|
603
|
-
},
|
|
604
|
-
{
|
|
605
|
-
"debug": "stepThrough"
|
|
606
|
-
},
|
|
607
|
-
{
|
|
608
|
-
"integrations": {
|
|
609
|
-
"docDetectiveApi": {
|
|
610
|
-
"apiKey": "your-api-key-here"
|
|
611
|
-
}
|
|
612
|
-
}
|
|
613
|
-
},
|
|
614
|
-
{
|
|
615
|
-
"crawl": true
|
|
616
|
-
},
|
|
617
|
-
{
|
|
618
|
-
"processDitaMaps": true
|
|
619
|
-
},
|
|
620
|
-
{
|
|
621
|
-
"integrations": {
|
|
622
|
-
"heretto": [
|
|
623
|
-
{
|
|
624
|
-
"name": "example",
|
|
625
|
-
"organizationId": "your-organization-id",
|
|
626
|
-
"username": "your-username",
|
|
627
|
-
"apiToken": "your-api-token"
|
|
628
|
-
}
|
|
629
|
-
]
|
|
630
|
-
}
|
|
631
|
-
}
|
|
632
|
-
]
|
|
633
|
-
}
|