doc-detective-common 3.3.0 → 3.4.0-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/schemas/config_v3.schema.json +28 -2
- package/dist/schemas/resolvedTests_v3.schema.json +28 -2
- package/package.json +5 -6
- package/src/resolvePaths.js +6 -0
- package/src/schemas/build/config_v3.schema.json +28 -2
- package/src/schemas/output_schemas/config_v3.schema.json +28 -2
- package/src/schemas/output_schemas/resolvedTests_v3.schema.json +28 -2
- package/src/schemas/schemas.json +56 -4
- package/src/schemas/src_schemas/config_v3.schema.json +26 -2
- package/src/validate.js +2 -2
|
@@ -121,6 +121,11 @@
|
|
|
121
121
|
"type": "boolean",
|
|
122
122
|
"description": "Whether or not to run potentially unsafe steps, such as those that might modify files or system state."
|
|
123
123
|
},
|
|
124
|
+
"processDitaMaps": {
|
|
125
|
+
"description": "If `true`, processes DITA maps and includes generated files as inputs.",
|
|
126
|
+
"type": "boolean",
|
|
127
|
+
"default": true
|
|
128
|
+
},
|
|
124
129
|
"logLevel": {
|
|
125
130
|
"description": "Amount of detail to output when performing an operation.",
|
|
126
131
|
"type": "string",
|
|
@@ -520,7 +525,8 @@
|
|
|
520
525
|
"default": [
|
|
521
526
|
"markdown",
|
|
522
527
|
"asciidoc",
|
|
523
|
-
"html"
|
|
528
|
+
"html",
|
|
529
|
+
"dita"
|
|
524
530
|
],
|
|
525
531
|
"anyOf": [
|
|
526
532
|
{
|
|
@@ -535,7 +541,8 @@
|
|
|
535
541
|
"enum": [
|
|
536
542
|
"markdown",
|
|
537
543
|
"asciidoc",
|
|
538
|
-
"html"
|
|
544
|
+
"html",
|
|
545
|
+
"dita"
|
|
539
546
|
]
|
|
540
547
|
},
|
|
541
548
|
{
|
|
@@ -6747,6 +6754,18 @@
|
|
|
6747
6754
|
}
|
|
6748
6755
|
]
|
|
6749
6756
|
}
|
|
6757
|
+
},
|
|
6758
|
+
"docDetectiveApi": {
|
|
6759
|
+
"type": "object",
|
|
6760
|
+
"description": "Configuration for Doc Detective Orchestration API integration.",
|
|
6761
|
+
"additionalProperties": false,
|
|
6762
|
+
"properties": {
|
|
6763
|
+
"apiKey": {
|
|
6764
|
+
"type": "string",
|
|
6765
|
+
"description": "API key for authenticating with the Doc Detective Orchestration API."
|
|
6766
|
+
}
|
|
6767
|
+
},
|
|
6768
|
+
"title": "Doc Detective Orchestration API"
|
|
6750
6769
|
}
|
|
6751
6770
|
},
|
|
6752
6771
|
"title": "Integrations options"
|
|
@@ -12695,6 +12714,13 @@
|
|
|
12695
12714
|
},
|
|
12696
12715
|
{
|
|
12697
12716
|
"debug": "stepThrough"
|
|
12717
|
+
},
|
|
12718
|
+
{
|
|
12719
|
+
"integrations": {
|
|
12720
|
+
"docDetectiveApi": {
|
|
12721
|
+
"apiKey": "your-api-key-here"
|
|
12722
|
+
}
|
|
12723
|
+
}
|
|
12698
12724
|
}
|
|
12699
12725
|
]
|
|
12700
12726
|
}
|
|
@@ -134,6 +134,11 @@
|
|
|
134
134
|
"type": "boolean",
|
|
135
135
|
"description": "Whether or not to run potentially unsafe steps, such as those that might modify files or system state."
|
|
136
136
|
},
|
|
137
|
+
"processDitaMaps": {
|
|
138
|
+
"description": "If `true`, processes DITA maps and includes generated files as inputs.",
|
|
139
|
+
"type": "boolean",
|
|
140
|
+
"default": true
|
|
141
|
+
},
|
|
137
142
|
"logLevel": {
|
|
138
143
|
"description": "Amount of detail to output when performing an operation.",
|
|
139
144
|
"type": "string",
|
|
@@ -533,7 +538,8 @@
|
|
|
533
538
|
"default": [
|
|
534
539
|
"markdown",
|
|
535
540
|
"asciidoc",
|
|
536
|
-
"html"
|
|
541
|
+
"html",
|
|
542
|
+
"dita"
|
|
537
543
|
],
|
|
538
544
|
"anyOf": [
|
|
539
545
|
{
|
|
@@ -548,7 +554,8 @@
|
|
|
548
554
|
"enum": [
|
|
549
555
|
"markdown",
|
|
550
556
|
"asciidoc",
|
|
551
|
-
"html"
|
|
557
|
+
"html",
|
|
558
|
+
"dita"
|
|
552
559
|
]
|
|
553
560
|
},
|
|
554
561
|
{
|
|
@@ -6760,6 +6767,18 @@
|
|
|
6760
6767
|
}
|
|
6761
6768
|
]
|
|
6762
6769
|
}
|
|
6770
|
+
},
|
|
6771
|
+
"docDetectiveApi": {
|
|
6772
|
+
"type": "object",
|
|
6773
|
+
"description": "Configuration for Doc Detective Orchestration API integration.",
|
|
6774
|
+
"additionalProperties": false,
|
|
6775
|
+
"properties": {
|
|
6776
|
+
"apiKey": {
|
|
6777
|
+
"type": "string",
|
|
6778
|
+
"description": "API key for authenticating with the Doc Detective Orchestration API."
|
|
6779
|
+
}
|
|
6780
|
+
},
|
|
6781
|
+
"title": "Doc Detective Orchestration API"
|
|
6763
6782
|
}
|
|
6764
6783
|
},
|
|
6765
6784
|
"title": "Integrations options"
|
|
@@ -12708,6 +12727,13 @@
|
|
|
12708
12727
|
},
|
|
12709
12728
|
{
|
|
12710
12729
|
"debug": "stepThrough"
|
|
12730
|
+
},
|
|
12731
|
+
{
|
|
12732
|
+
"integrations": {
|
|
12733
|
+
"docDetectiveApi": {
|
|
12734
|
+
"apiKey": "your-api-key-here"
|
|
12735
|
+
}
|
|
12736
|
+
}
|
|
12711
12737
|
}
|
|
12712
12738
|
]
|
|
12713
12739
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "doc-detective-common",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.0-dev.2",
|
|
4
4
|
"description": "Shared components for Doc Detective projects.",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -20,18 +20,17 @@
|
|
|
20
20
|
},
|
|
21
21
|
"homepage": "https://github.com/doc-detective/doc-detective-common#readme",
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"chai": "^
|
|
24
|
-
"mocha": "^11.7.
|
|
23
|
+
"chai": "^6.2.0",
|
|
24
|
+
"mocha": "^11.7.4",
|
|
25
25
|
"sinon": "^21.0.0"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@apidevtools/json-schema-ref-parser": "^14.2.
|
|
28
|
+
"@apidevtools/json-schema-ref-parser": "^14.2.1",
|
|
29
29
|
"ajv": "^8.17.1",
|
|
30
30
|
"ajv-errors": "^3.0.0",
|
|
31
31
|
"ajv-formats": "^3.0.1",
|
|
32
32
|
"ajv-keywords": "^5.1.0",
|
|
33
|
-
"axios": "^1.
|
|
34
|
-
"uuid": "^11.1.0",
|
|
33
|
+
"axios": "^1.12.2",
|
|
35
34
|
"yaml": "^2.8.1"
|
|
36
35
|
}
|
|
37
36
|
}
|
package/src/resolvePaths.js
CHANGED
|
@@ -76,8 +76,14 @@ async function resolvePaths({
|
|
|
76
76
|
* @returns {string} The absolute path corresponding to {@link relativePath}.
|
|
77
77
|
*
|
|
78
78
|
* @remark If {@link relativePath} is already absolute, it is returned unchanged. If {@link filePath} does not exist, its extension is used to infer whether it is a file or directory.
|
|
79
|
+
* @remark HTTP and HTTPS URLs are returned unchanged without resolution.
|
|
79
80
|
*/
|
|
80
81
|
function resolve(baseType, relativePath, filePath) {
|
|
82
|
+
// If the path is an http:// or https:// URL, return it
|
|
83
|
+
if (relativePath.startsWith("https://") || relativePath.startsWith("http://")) {
|
|
84
|
+
return relativePath;
|
|
85
|
+
}
|
|
86
|
+
|
|
81
87
|
// If path is already absolute, return it
|
|
82
88
|
if (path.isAbsolute(relativePath)) {
|
|
83
89
|
return relativePath;
|
|
@@ -104,6 +104,11 @@
|
|
|
104
104
|
"type": "boolean",
|
|
105
105
|
"description": "Whether or not to run potentially unsafe steps, such as those that might modify files or system state."
|
|
106
106
|
},
|
|
107
|
+
"processDitaMaps": {
|
|
108
|
+
"description": "If `true`, processes DITA maps and includes generated files as inputs.",
|
|
109
|
+
"type": "boolean",
|
|
110
|
+
"default": true
|
|
111
|
+
},
|
|
107
112
|
"logLevel": {
|
|
108
113
|
"description": "Amount of detail to output when performing an operation.",
|
|
109
114
|
"type": "string",
|
|
@@ -124,7 +129,8 @@
|
|
|
124
129
|
"default": [
|
|
125
130
|
"markdown",
|
|
126
131
|
"asciidoc",
|
|
127
|
-
"html"
|
|
132
|
+
"html",
|
|
133
|
+
"dita"
|
|
128
134
|
],
|
|
129
135
|
"anyOf": [
|
|
130
136
|
{
|
|
@@ -139,7 +145,8 @@
|
|
|
139
145
|
"enum": [
|
|
140
146
|
"markdown",
|
|
141
147
|
"asciidoc",
|
|
142
|
-
"html"
|
|
148
|
+
"html",
|
|
149
|
+
"dita"
|
|
143
150
|
]
|
|
144
151
|
},
|
|
145
152
|
{
|
|
@@ -231,6 +238,18 @@
|
|
|
231
238
|
"properties": {
|
|
232
239
|
"openApi": {
|
|
233
240
|
"$ref": "/home/runner/work/common/common/src/schemas/build/test_v3.schema.json#/properties/openApi"
|
|
241
|
+
},
|
|
242
|
+
"docDetectiveApi": {
|
|
243
|
+
"type": "object",
|
|
244
|
+
"description": "Configuration for Doc Detective Orchestration API integration.",
|
|
245
|
+
"additionalProperties": false,
|
|
246
|
+
"properties": {
|
|
247
|
+
"apiKey": {
|
|
248
|
+
"type": "string",
|
|
249
|
+
"description": "API key for authenticating with the Doc Detective Orchestration API."
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
"title": "Doc Detective Orchestration API"
|
|
234
253
|
}
|
|
235
254
|
},
|
|
236
255
|
"title": "Integrations options"
|
|
@@ -546,6 +565,13 @@
|
|
|
546
565
|
},
|
|
547
566
|
{
|
|
548
567
|
"debug": "stepThrough"
|
|
568
|
+
},
|
|
569
|
+
{
|
|
570
|
+
"integrations": {
|
|
571
|
+
"docDetectiveApi": {
|
|
572
|
+
"apiKey": "your-api-key-here"
|
|
573
|
+
}
|
|
574
|
+
}
|
|
549
575
|
}
|
|
550
576
|
],
|
|
551
577
|
"$id": "/home/runner/work/common/common/src/schemas/src_schemas/config_v3.schema.json"
|
|
@@ -121,6 +121,11 @@
|
|
|
121
121
|
"type": "boolean",
|
|
122
122
|
"description": "Whether or not to run potentially unsafe steps, such as those that might modify files or system state."
|
|
123
123
|
},
|
|
124
|
+
"processDitaMaps": {
|
|
125
|
+
"description": "If `true`, processes DITA maps and includes generated files as inputs.",
|
|
126
|
+
"type": "boolean",
|
|
127
|
+
"default": true
|
|
128
|
+
},
|
|
124
129
|
"logLevel": {
|
|
125
130
|
"description": "Amount of detail to output when performing an operation.",
|
|
126
131
|
"type": "string",
|
|
@@ -520,7 +525,8 @@
|
|
|
520
525
|
"default": [
|
|
521
526
|
"markdown",
|
|
522
527
|
"asciidoc",
|
|
523
|
-
"html"
|
|
528
|
+
"html",
|
|
529
|
+
"dita"
|
|
524
530
|
],
|
|
525
531
|
"anyOf": [
|
|
526
532
|
{
|
|
@@ -535,7 +541,8 @@
|
|
|
535
541
|
"enum": [
|
|
536
542
|
"markdown",
|
|
537
543
|
"asciidoc",
|
|
538
|
-
"html"
|
|
544
|
+
"html",
|
|
545
|
+
"dita"
|
|
539
546
|
]
|
|
540
547
|
},
|
|
541
548
|
{
|
|
@@ -6747,6 +6754,18 @@
|
|
|
6747
6754
|
}
|
|
6748
6755
|
]
|
|
6749
6756
|
}
|
|
6757
|
+
},
|
|
6758
|
+
"docDetectiveApi": {
|
|
6759
|
+
"type": "object",
|
|
6760
|
+
"description": "Configuration for Doc Detective Orchestration API integration.",
|
|
6761
|
+
"additionalProperties": false,
|
|
6762
|
+
"properties": {
|
|
6763
|
+
"apiKey": {
|
|
6764
|
+
"type": "string",
|
|
6765
|
+
"description": "API key for authenticating with the Doc Detective Orchestration API."
|
|
6766
|
+
}
|
|
6767
|
+
},
|
|
6768
|
+
"title": "Doc Detective Orchestration API"
|
|
6750
6769
|
}
|
|
6751
6770
|
},
|
|
6752
6771
|
"title": "Integrations options"
|
|
@@ -12695,6 +12714,13 @@
|
|
|
12695
12714
|
},
|
|
12696
12715
|
{
|
|
12697
12716
|
"debug": "stepThrough"
|
|
12717
|
+
},
|
|
12718
|
+
{
|
|
12719
|
+
"integrations": {
|
|
12720
|
+
"docDetectiveApi": {
|
|
12721
|
+
"apiKey": "your-api-key-here"
|
|
12722
|
+
}
|
|
12723
|
+
}
|
|
12698
12724
|
}
|
|
12699
12725
|
]
|
|
12700
12726
|
}
|
|
@@ -134,6 +134,11 @@
|
|
|
134
134
|
"type": "boolean",
|
|
135
135
|
"description": "Whether or not to run potentially unsafe steps, such as those that might modify files or system state."
|
|
136
136
|
},
|
|
137
|
+
"processDitaMaps": {
|
|
138
|
+
"description": "If `true`, processes DITA maps and includes generated files as inputs.",
|
|
139
|
+
"type": "boolean",
|
|
140
|
+
"default": true
|
|
141
|
+
},
|
|
137
142
|
"logLevel": {
|
|
138
143
|
"description": "Amount of detail to output when performing an operation.",
|
|
139
144
|
"type": "string",
|
|
@@ -533,7 +538,8 @@
|
|
|
533
538
|
"default": [
|
|
534
539
|
"markdown",
|
|
535
540
|
"asciidoc",
|
|
536
|
-
"html"
|
|
541
|
+
"html",
|
|
542
|
+
"dita"
|
|
537
543
|
],
|
|
538
544
|
"anyOf": [
|
|
539
545
|
{
|
|
@@ -548,7 +554,8 @@
|
|
|
548
554
|
"enum": [
|
|
549
555
|
"markdown",
|
|
550
556
|
"asciidoc",
|
|
551
|
-
"html"
|
|
557
|
+
"html",
|
|
558
|
+
"dita"
|
|
552
559
|
]
|
|
553
560
|
},
|
|
554
561
|
{
|
|
@@ -6760,6 +6767,18 @@
|
|
|
6760
6767
|
}
|
|
6761
6768
|
]
|
|
6762
6769
|
}
|
|
6770
|
+
},
|
|
6771
|
+
"docDetectiveApi": {
|
|
6772
|
+
"type": "object",
|
|
6773
|
+
"description": "Configuration for Doc Detective Orchestration API integration.",
|
|
6774
|
+
"additionalProperties": false,
|
|
6775
|
+
"properties": {
|
|
6776
|
+
"apiKey": {
|
|
6777
|
+
"type": "string",
|
|
6778
|
+
"description": "API key for authenticating with the Doc Detective Orchestration API."
|
|
6779
|
+
}
|
|
6780
|
+
},
|
|
6781
|
+
"title": "Doc Detective Orchestration API"
|
|
6763
6782
|
}
|
|
6764
6783
|
},
|
|
6765
6784
|
"title": "Integrations options"
|
|
@@ -12708,6 +12727,13 @@
|
|
|
12708
12727
|
},
|
|
12709
12728
|
{
|
|
12710
12729
|
"debug": "stepThrough"
|
|
12730
|
+
},
|
|
12731
|
+
{
|
|
12732
|
+
"integrations": {
|
|
12733
|
+
"docDetectiveApi": {
|
|
12734
|
+
"apiKey": "your-api-key-here"
|
|
12735
|
+
}
|
|
12736
|
+
}
|
|
12711
12737
|
}
|
|
12712
12738
|
]
|
|
12713
12739
|
},
|
package/src/schemas/schemas.json
CHANGED
|
@@ -383,6 +383,11 @@
|
|
|
383
383
|
"type": "boolean",
|
|
384
384
|
"description": "Whether or not to run potentially unsafe steps, such as those that might modify files or system state."
|
|
385
385
|
},
|
|
386
|
+
"processDitaMaps": {
|
|
387
|
+
"description": "If `true`, processes DITA maps and includes generated files as inputs.",
|
|
388
|
+
"type": "boolean",
|
|
389
|
+
"default": true
|
|
390
|
+
},
|
|
386
391
|
"logLevel": {
|
|
387
392
|
"description": "Amount of detail to output when performing an operation.",
|
|
388
393
|
"type": "string",
|
|
@@ -782,7 +787,8 @@
|
|
|
782
787
|
"default": [
|
|
783
788
|
"markdown",
|
|
784
789
|
"asciidoc",
|
|
785
|
-
"html"
|
|
790
|
+
"html",
|
|
791
|
+
"dita"
|
|
786
792
|
],
|
|
787
793
|
"anyOf": [
|
|
788
794
|
{
|
|
@@ -797,7 +803,8 @@
|
|
|
797
803
|
"enum": [
|
|
798
804
|
"markdown",
|
|
799
805
|
"asciidoc",
|
|
800
|
-
"html"
|
|
806
|
+
"html",
|
|
807
|
+
"dita"
|
|
801
808
|
]
|
|
802
809
|
},
|
|
803
810
|
{
|
|
@@ -7009,6 +7016,18 @@
|
|
|
7009
7016
|
}
|
|
7010
7017
|
]
|
|
7011
7018
|
}
|
|
7019
|
+
},
|
|
7020
|
+
"docDetectiveApi": {
|
|
7021
|
+
"type": "object",
|
|
7022
|
+
"description": "Configuration for Doc Detective Orchestration API integration.",
|
|
7023
|
+
"additionalProperties": false,
|
|
7024
|
+
"properties": {
|
|
7025
|
+
"apiKey": {
|
|
7026
|
+
"type": "string",
|
|
7027
|
+
"description": "API key for authenticating with the Doc Detective Orchestration API."
|
|
7028
|
+
}
|
|
7029
|
+
},
|
|
7030
|
+
"title": "Doc Detective Orchestration API"
|
|
7012
7031
|
}
|
|
7013
7032
|
},
|
|
7014
7033
|
"title": "Integrations options"
|
|
@@ -12957,6 +12976,13 @@
|
|
|
12957
12976
|
},
|
|
12958
12977
|
{
|
|
12959
12978
|
"debug": "stepThrough"
|
|
12979
|
+
},
|
|
12980
|
+
{
|
|
12981
|
+
"integrations": {
|
|
12982
|
+
"docDetectiveApi": {
|
|
12983
|
+
"apiKey": "your-api-key-here"
|
|
12984
|
+
}
|
|
12985
|
+
}
|
|
12960
12986
|
}
|
|
12961
12987
|
]
|
|
12962
12988
|
},
|
|
@@ -15947,6 +15973,11 @@
|
|
|
15947
15973
|
"type": "boolean",
|
|
15948
15974
|
"description": "Whether or not to run potentially unsafe steps, such as those that might modify files or system state."
|
|
15949
15975
|
},
|
|
15976
|
+
"processDitaMaps": {
|
|
15977
|
+
"description": "If `true`, processes DITA maps and includes generated files as inputs.",
|
|
15978
|
+
"type": "boolean",
|
|
15979
|
+
"default": true
|
|
15980
|
+
},
|
|
15950
15981
|
"logLevel": {
|
|
15951
15982
|
"description": "Amount of detail to output when performing an operation.",
|
|
15952
15983
|
"type": "string",
|
|
@@ -16346,7 +16377,8 @@
|
|
|
16346
16377
|
"default": [
|
|
16347
16378
|
"markdown",
|
|
16348
16379
|
"asciidoc",
|
|
16349
|
-
"html"
|
|
16380
|
+
"html",
|
|
16381
|
+
"dita"
|
|
16350
16382
|
],
|
|
16351
16383
|
"anyOf": [
|
|
16352
16384
|
{
|
|
@@ -16361,7 +16393,8 @@
|
|
|
16361
16393
|
"enum": [
|
|
16362
16394
|
"markdown",
|
|
16363
16395
|
"asciidoc",
|
|
16364
|
-
"html"
|
|
16396
|
+
"html",
|
|
16397
|
+
"dita"
|
|
16365
16398
|
]
|
|
16366
16399
|
},
|
|
16367
16400
|
{
|
|
@@ -22573,6 +22606,18 @@
|
|
|
22573
22606
|
}
|
|
22574
22607
|
]
|
|
22575
22608
|
}
|
|
22609
|
+
},
|
|
22610
|
+
"docDetectiveApi": {
|
|
22611
|
+
"type": "object",
|
|
22612
|
+
"description": "Configuration for Doc Detective Orchestration API integration.",
|
|
22613
|
+
"additionalProperties": false,
|
|
22614
|
+
"properties": {
|
|
22615
|
+
"apiKey": {
|
|
22616
|
+
"type": "string",
|
|
22617
|
+
"description": "API key for authenticating with the Doc Detective Orchestration API."
|
|
22618
|
+
}
|
|
22619
|
+
},
|
|
22620
|
+
"title": "Doc Detective Orchestration API"
|
|
22576
22621
|
}
|
|
22577
22622
|
},
|
|
22578
22623
|
"title": "Integrations options"
|
|
@@ -28521,6 +28566,13 @@
|
|
|
28521
28566
|
},
|
|
28522
28567
|
{
|
|
28523
28568
|
"debug": "stepThrough"
|
|
28569
|
+
},
|
|
28570
|
+
{
|
|
28571
|
+
"integrations": {
|
|
28572
|
+
"docDetectiveApi": {
|
|
28573
|
+
"apiKey": "your-api-key-here"
|
|
28574
|
+
}
|
|
28575
|
+
}
|
|
28524
28576
|
}
|
|
28525
28577
|
]
|
|
28526
28578
|
},
|
|
@@ -101,6 +101,11 @@
|
|
|
101
101
|
"type": "boolean",
|
|
102
102
|
"description": "Whether or not to run potentially unsafe steps, such as those that might modify files or system state."
|
|
103
103
|
},
|
|
104
|
+
"processDitaMaps": {
|
|
105
|
+
"description": "If `true`, processes DITA maps and includes generated files as inputs.",
|
|
106
|
+
"type": "boolean",
|
|
107
|
+
"default": true
|
|
108
|
+
},
|
|
104
109
|
"logLevel": {
|
|
105
110
|
"description": "Amount of detail to output when performing an operation.",
|
|
106
111
|
"type": "string",
|
|
@@ -112,7 +117,7 @@
|
|
|
112
117
|
},
|
|
113
118
|
"fileTypes": {
|
|
114
119
|
"description": "Configuration for file types and their markup detection.",
|
|
115
|
-
"default": ["markdown", "asciidoc", "html"],
|
|
120
|
+
"default": ["markdown", "asciidoc", "html", "dita"],
|
|
116
121
|
"anyOf": [
|
|
117
122
|
{
|
|
118
123
|
"type": "array",
|
|
@@ -123,7 +128,7 @@
|
|
|
123
128
|
"$comment": "Simple mode: Reference predefined templates by name.",
|
|
124
129
|
"title": "File type (predefined)",
|
|
125
130
|
"type": "string",
|
|
126
|
-
"enum": ["markdown", "asciidoc", "html"]
|
|
131
|
+
"enum": ["markdown", "asciidoc", "html", "dita"]
|
|
127
132
|
},
|
|
128
133
|
{
|
|
129
134
|
"$comment": "Custom mode: Extend predefined templates or write whole new ones.",
|
|
@@ -200,6 +205,18 @@
|
|
|
200
205
|
"properties": {
|
|
201
206
|
"openApi": {
|
|
202
207
|
"$ref": "test_v3.schema.json#/properties/openApi"
|
|
208
|
+
},
|
|
209
|
+
"docDetectiveApi": {
|
|
210
|
+
"type": "object",
|
|
211
|
+
"description": "Configuration for Doc Detective Orchestration API integration.",
|
|
212
|
+
"additionalProperties": false,
|
|
213
|
+
"properties": {
|
|
214
|
+
"apiKey": {
|
|
215
|
+
"type": "string",
|
|
216
|
+
"description": "API key for authenticating with the Doc Detective Orchestration API."
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
"title": "Doc Detective Orchestration API"
|
|
203
220
|
}
|
|
204
221
|
},
|
|
205
222
|
"title": "Integrations options"
|
|
@@ -491,6 +508,13 @@
|
|
|
491
508
|
},
|
|
492
509
|
{
|
|
493
510
|
"debug": "stepThrough"
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
"integrations": {
|
|
514
|
+
"docDetectiveApi": {
|
|
515
|
+
"apiKey": "your-api-key-here"
|
|
516
|
+
}
|
|
517
|
+
}
|
|
494
518
|
}
|
|
495
519
|
]
|
|
496
520
|
}
|
package/src/validate.js
CHANGED
|
@@ -6,7 +6,7 @@ const addFormats = require("ajv-formats");
|
|
|
6
6
|
const addKeywords = require("ajv-keywords");
|
|
7
7
|
// Ajv custom errors: https://ajv.js.org/packages/ajv-errors.html
|
|
8
8
|
const addErrors = require("ajv-errors");
|
|
9
|
-
const
|
|
9
|
+
const { randomUUID } = require("crypto");
|
|
10
10
|
|
|
11
11
|
// Configure base Ajv
|
|
12
12
|
const ajv = new Ajv({
|
|
@@ -19,7 +19,7 @@ const ajv = new Ajv({
|
|
|
19
19
|
|
|
20
20
|
// Enable `uuid` dynamic default
|
|
21
21
|
const def = require("ajv-keywords/dist/definitions/dynamicDefaults");
|
|
22
|
-
def.DEFAULTS.uuid = () =>
|
|
22
|
+
def.DEFAULTS.uuid = () => randomUUID;
|
|
23
23
|
|
|
24
24
|
// Enhance Ajv
|
|
25
25
|
addFormats(ajv);
|