doc-detective-common 1.2.7 → 1.2.9

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 (32) hide show
  1. package/package.json +1 -1
  2. package/src/schemas/dereferenceSchemas.js +2 -0
  3. package/src/schemas/output_schemas/analytics_v1.schema.json +1 -2
  4. package/src/schemas/output_schemas/checkLink_v1.schema.json +1 -2
  5. package/src/schemas/output_schemas/checkLink_v2.schema.json +1 -2
  6. package/src/schemas/output_schemas/click_v1.schema.json +1 -2
  7. package/src/schemas/output_schemas/config_v2.schema.json +1 -3
  8. package/src/schemas/output_schemas/context_v2.schema.json +1 -2
  9. package/src/schemas/output_schemas/find_v1.schema.json +1 -2
  10. package/src/schemas/output_schemas/find_v2.schema.json +1 -2
  11. package/src/schemas/output_schemas/goTo_v1.schema.json +1 -2
  12. package/src/schemas/output_schemas/goTo_v2.schema.json +1 -2
  13. package/src/schemas/output_schemas/httpRequest_v1.schema.json +1 -2
  14. package/src/schemas/output_schemas/httpRequest_v2.schema.json +1 -2
  15. package/src/schemas/output_schemas/matchText_v1.schema.json +1 -2
  16. package/src/schemas/output_schemas/moveMouse_v1.schema.json +1 -2
  17. package/src/schemas/output_schemas/runShell_v1.schema.json +1 -2
  18. package/src/schemas/output_schemas/runShell_v2.schema.json +1 -2
  19. package/src/schemas/output_schemas/saveScreenshot_v2.schema.json +1 -2
  20. package/src/schemas/output_schemas/screenshot_v1.schema.json +1 -2
  21. package/src/schemas/output_schemas/scroll_v1.schema.json +1 -2
  22. package/src/schemas/output_schemas/setVariables_v2.schema.json +1 -2
  23. package/src/schemas/output_schemas/spec_v2.schema.json +1 -2
  24. package/src/schemas/output_schemas/startRecording_v1.schema.json +1 -2
  25. package/src/schemas/output_schemas/startRecording_v2.schema.json +1 -2
  26. package/src/schemas/output_schemas/stopRecording_v1.schema.json +1 -2
  27. package/src/schemas/output_schemas/test_v2.schema.json +1 -2
  28. package/src/schemas/output_schemas/typeKeys_v2.schema.json +1 -2
  29. package/src/schemas/output_schemas/type_v1.schema.json +1 -2
  30. package/src/schemas/output_schemas/wait_v1.schema.json +1 -2
  31. package/src/schemas/output_schemas/wait_v2.schema.json +1 -2
  32. package/src/schemas/src_schemas/config_v2.schema.json +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "doc-detective-common",
3
- "version": "1.2.7",
3
+ "version": "1.2.9",
4
4
  "description": "Shared components for Doc Detective projects.",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -27,6 +27,8 @@ async function dereferenceSchemas() {
27
27
  schema = updateRefPaths(schema, inputDir);
28
28
  // Dereference schema
29
29
  schema = await parser.dereference(schema);
30
+ // Delete ID
31
+ delete schema.$id
30
32
  // Write to file
31
33
  fs.writeFileSync(`${outputDir}/${file}`, JSON.stringify(schema, null, 2));
32
34
  }
@@ -581,6 +581,5 @@
581
581
  }
582
582
  }
583
583
  }
584
- ],
585
- "$id": "/home/hawkeyexl/Documents/Workspace/doc-detective-common/src/schemas/src_schemas/analytics_v1.schema.json"
584
+ ]
586
585
  }
@@ -38,6 +38,5 @@
38
38
  200
39
39
  ]
40
40
  }
41
- ],
42
- "$id": "/home/hawkeyexl/Documents/Workspace/doc-detective-common/src/schemas/src_schemas/checkLink_v1.schema.json"
41
+ ]
43
42
  }
@@ -60,6 +60,5 @@
60
60
  200
61
61
  ]
62
62
  }
63
- ],
64
- "$id": "/home/hawkeyexl/Documents/Workspace/doc-detective-common/src/schemas/src_schemas/checkLink_v2.schema.json"
63
+ ]
65
64
  }
@@ -56,6 +56,5 @@
56
56
  "offsetX": 10,
57
57
  "offsetY": 10
58
58
  }
59
- ],
60
- "$id": "/home/hawkeyexl/Documents/Workspace/doc-detective-common/src/schemas/src_schemas/click_v1.schema.json"
59
+ ]
61
60
  }
@@ -41,7 +41,6 @@
41
41
  "type": "object",
42
42
  "additionalProperties": false,
43
43
  "description": "Options for running tests. When running tests, values set here override general configuration options.",
44
- "default": {},
45
44
  "properties": {
46
45
  "input": {
47
46
  "description": "Path(s) to test specifications and documentation source files. May be paths to specific files or to directories to scan for files.",
@@ -775,6 +774,5 @@
775
774
  "userId": "Doc Detective"
776
775
  }
777
776
  }
778
- ],
779
- "$id": "/home/hawkeyexl/Documents/Workspace/doc-detective-common/src/schemas/src_schemas/config_v2.schema.json"
777
+ ]
780
778
  }
@@ -71,6 +71,5 @@
71
71
  "linux"
72
72
  ]
73
73
  }
74
- ],
75
- "$id": "/home/hawkeyexl/Documents/Workspace/doc-detective-common/src/schemas/src_schemas/context_v2.schema.json"
74
+ ]
76
75
  }
@@ -167,6 +167,5 @@
167
167
  "env": "./sample/variables.env"
168
168
  }
169
169
  }
170
- ],
171
- "$id": "/home/hawkeyexl/Documents/Workspace/doc-detective-common/src/schemas/src_schemas/find_v1.schema.json"
170
+ ]
172
171
  }
@@ -92,6 +92,5 @@
92
92
  "click": true,
93
93
  "typeKeys": "shorthair cat"
94
94
  }
95
- ],
96
- "$id": "/home/hawkeyexl/Documents/Workspace/doc-detective-common/src/schemas/src_schemas/find_v2.schema.json"
95
+ ]
97
96
  }
@@ -26,6 +26,5 @@
26
26
  "action": "goTo",
27
27
  "uri": "$URI"
28
28
  }
29
- ],
30
- "$id": "/home/hawkeyexl/Documents/Workspace/doc-detective-common/src/schemas/src_schemas/goTo_v1.schema.json"
29
+ ]
31
30
  }
@@ -44,6 +44,5 @@
44
44
  "action": "goTo",
45
45
  "url": "https://www.google.com"
46
46
  }
47
- ],
48
- "$id": "/home/hawkeyexl/Documents/Workspace/doc-detective-common/src/schemas/src_schemas/goTo_v2.schema.json"
47
+ ]
49
48
  }
@@ -111,6 +111,5 @@
111
111
  200
112
112
  ]
113
113
  }
114
- ],
115
- "$id": "/home/hawkeyexl/Documents/Workspace/doc-detective-common/src/schemas/src_schemas/httpRequest_v1.schema.json"
114
+ ]
116
115
  }
@@ -187,6 +187,5 @@
187
187
  200
188
188
  ]
189
189
  }
190
- ],
191
- "$id": "/home/hawkeyexl/Documents/Workspace/doc-detective-common/src/schemas/src_schemas/httpRequest_v2.schema.json"
190
+ ]
192
191
  }
@@ -28,6 +28,5 @@
28
28
  "css": "#gbqfbb",
29
29
  "text": "I'm Feeling Lucky"
30
30
  }
31
- ],
32
- "$id": "/home/hawkeyexl/Documents/Workspace/doc-detective-common/src/schemas/src_schemas/matchText_v1.schema.json"
31
+ ]
33
32
  }
@@ -56,6 +56,5 @@
56
56
  "offsetX": 10,
57
57
  "offsetY": 10
58
58
  }
59
- ],
60
- "$id": "/home/hawkeyexl/Documents/Workspace/doc-detective-common/src/schemas/src_schemas/moveMouse_v1.schema.json"
59
+ ]
61
60
  }
@@ -31,6 +31,5 @@
31
31
  "command": "echo $username",
32
32
  "env": "./variables.env"
33
33
  }
34
- ],
35
- "$id": "/home/hawkeyexl/Documents/Workspace/doc-detective-common/src/schemas/src_schemas/runShell_v1.schema.json"
34
+ ]
36
35
  }
@@ -58,6 +58,5 @@
58
58
  "id": "ddec5e20-2e81-4f38-867c-92c8d9516755",
59
59
  "description": "This is a test!"
60
60
  }
61
- ],
62
- "$id": "/home/hawkeyexl/Documents/Workspace/doc-detective-common/src/schemas/src_schemas/runShell_v2.schema.json"
61
+ ]
63
62
  }
@@ -37,6 +37,5 @@
37
37
  "action": "saveScreenshot",
38
38
  "path": "results.png"
39
39
  }
40
- ],
41
- "$id": "/home/hawkeyexl/Documents/Workspace/doc-detective-common/src/schemas/src_schemas/saveScreenshot_v2.schema.json"
40
+ ]
42
41
  }
@@ -44,6 +44,5 @@
44
44
  "matchPrevious": true,
45
45
  "matchThreshold": 0.3
46
46
  }
47
- ],
48
- "$id": "/home/hawkeyexl/Documents/Workspace/doc-detective-common/src/schemas/src_schemas/screenshot_v1.schema.json"
47
+ ]
49
48
  }
@@ -46,6 +46,5 @@
46
46
  "x": 100,
47
47
  "y": 100
48
48
  }
49
- ],
50
- "$id": "/home/hawkeyexl/Documents/Workspace/doc-detective-common/src/schemas/src_schemas/scroll_v1.schema.json"
49
+ ]
51
50
  }
@@ -34,6 +34,5 @@
34
34
  "action": "setVariables",
35
35
  "path": ".env"
36
36
  }
37
- ],
38
- "$id": "/home/hawkeyexl/Documents/Workspace/doc-detective-common/src/schemas/src_schemas/setVariables_v2.schema.json"
37
+ ]
39
38
  }
@@ -1073,6 +1073,5 @@
1073
1073
  }
1074
1074
  ]
1075
1075
  }
1076
- ],
1077
- "$id": "/home/hawkeyexl/Documents/Workspace/doc-detective-common/src/schemas/src_schemas/spec_v2.schema.json"
1076
+ ]
1078
1077
  }
@@ -51,6 +51,5 @@
51
51
  "width": 1200,
52
52
  "height": 800
53
53
  }
54
- ],
55
- "$id": "/home/hawkeyexl/Documents/Workspace/doc-detective-common/src/schemas/src_schemas/startRecording_v1.schema.json"
54
+ ]
56
55
  }
@@ -43,6 +43,5 @@
43
43
  "path": "results.mp4",
44
44
  "fps": 30
45
45
  }
46
- ],
47
- "$id": "/home/hawkeyexl/Documents/Workspace/doc-detective-common/src/schemas/src_schemas/startRecording_v2.schema.json"
46
+ ]
48
47
  }
@@ -16,6 +16,5 @@
16
16
  {
17
17
  "action": "stopRecording"
18
18
  }
19
- ],
20
- "$id": "/home/hawkeyexl/Documents/Workspace/doc-detective-common/src/schemas/src_schemas/stopRecording_v1.schema.json"
19
+ ]
21
20
  }
@@ -854,6 +854,5 @@
854
854
  }
855
855
  ]
856
856
  }
857
- ],
858
- "$id": "/home/hawkeyexl/Documents/Workspace/doc-detective-common/src/schemas/src_schemas/test_v2.schema.json"
857
+ ]
859
858
  }
@@ -51,6 +51,5 @@
51
51
  "$ENTER$"
52
52
  ]
53
53
  }
54
- ],
55
- "$id": "/home/hawkeyexl/Documents/Workspace/doc-detective-common/src/schemas/src_schemas/typeKeys_v2.schema.json"
54
+ ]
56
55
  }
@@ -58,6 +58,5 @@
58
58
  "keys": "kittens",
59
59
  "trailingSpecialKey": "Enter"
60
60
  }
61
- ],
62
- "$id": "/home/hawkeyexl/Documents/Workspace/doc-detective-common/src/schemas/src_schemas/type_v1.schema.json"
61
+ ]
63
62
  }
@@ -38,6 +38,5 @@
38
38
  "css": "[title=Search]",
39
39
  "duration": 5000
40
40
  }
41
- ],
42
- "$id": "/home/hawkeyexl/Documents/Workspace/doc-detective-common/src/schemas/src_schemas/wait_v1.schema.json"
41
+ ]
43
42
  }
@@ -37,6 +37,5 @@
37
37
  "action": "wait",
38
38
  "duration": 5000
39
39
  }
40
- ],
41
- "$id": "/home/hawkeyexl/Documents/Workspace/doc-detective-common/src/schemas/src_schemas/wait_v2.schema.json"
40
+ ]
42
41
  }
@@ -24,7 +24,6 @@
24
24
  "type": "object",
25
25
  "additionalProperties": false,
26
26
  "description": "Options for running tests. When running tests, values set here override general configuration options.",
27
- "default": {},
28
27
  "properties": {
29
28
  "input": {
30
29
  "$ref": "config_v2.schema.json#/definitions/input"