doc-detective-common 3.1.2-dev.2 → 3.1.2-dev.3

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 (27) hide show
  1. package/dist/schemas/config_v3.schema.json +1333 -45
  2. package/dist/schemas/loadCookie_v3.schema.json +225 -0
  3. package/dist/schemas/report_v3.schema.json +1321 -43
  4. package/dist/schemas/resolvedTests_v3.schema.json +2642 -76
  5. package/dist/schemas/saveCookie_v3.schema.json +251 -0
  6. package/dist/schemas/spec_v3.schema.json +1321 -43
  7. package/dist/schemas/step_v3.schema.json +639 -0
  8. package/dist/schemas/test_v3.schema.json +1321 -43
  9. package/package.json +5 -5
  10. package/src/schemas/build/config_v3.schema.json +2 -0
  11. package/src/schemas/build/loadCookie_v3.schema.json +134 -0
  12. package/src/schemas/build/saveCookie_v3.schema.json +149 -0
  13. package/src/schemas/build/step_v3.schema.json +59 -0
  14. package/src/schemas/dereferenceSchemas.js +2 -0
  15. package/src/schemas/output_schemas/config_v3.schema.json +1333 -45
  16. package/src/schemas/output_schemas/loadCookie_v3.schema.json +225 -0
  17. package/src/schemas/output_schemas/report_v3.schema.json +1321 -43
  18. package/src/schemas/output_schemas/resolvedTests_v3.schema.json +2642 -76
  19. package/src/schemas/output_schemas/saveCookie_v3.schema.json +251 -0
  20. package/src/schemas/output_schemas/spec_v3.schema.json +1321 -43
  21. package/src/schemas/output_schemas/step_v3.schema.json +639 -0
  22. package/src/schemas/output_schemas/test_v3.schema.json +1321 -43
  23. package/src/schemas/schemas.json +8810 -7
  24. package/src/schemas/src_schemas/config_v3.schema.json +2 -0
  25. package/src/schemas/src_schemas/loadCookie_v3.schema.json +109 -0
  26. package/src/schemas/src_schemas/saveCookie_v3.schema.json +122 -0
  27. package/src/schemas/src_schemas/step_v3.schema.json +55 -0
@@ -0,0 +1,225 @@
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
+ "type": "string",
8
+ "title": "Cookie name or file path",
9
+ "description": "Name of the specific cookie to load from default location, or file path to cookie file.",
10
+ "pattern": "^[A-Za-z0-9_./\\-]+$",
11
+ "transform": [
12
+ "trim"
13
+ ]
14
+ },
15
+ {
16
+ "type": "object",
17
+ "additionalProperties": false,
18
+ "required": [
19
+ "name"
20
+ ],
21
+ "anyOf": [
22
+ {
23
+ "required": [
24
+ "path"
25
+ ],
26
+ "not": {
27
+ "required": [
28
+ "variable"
29
+ ]
30
+ }
31
+ },
32
+ {
33
+ "required": [
34
+ "variable"
35
+ ],
36
+ "not": {
37
+ "anyOf": [
38
+ {
39
+ "required": [
40
+ "path"
41
+ ]
42
+ },
43
+ {
44
+ "required": [
45
+ "directory"
46
+ ]
47
+ }
48
+ ]
49
+ }
50
+ }
51
+ ],
52
+ "properties": {
53
+ "$schema": {
54
+ "description": "Optional self-describing schema URI for linters",
55
+ "type": "string",
56
+ "format": "uri-reference"
57
+ },
58
+ "name": {
59
+ "type": "string",
60
+ "title": "Cookie name",
61
+ "description": "Name of the specific cookie to load.",
62
+ "pattern": "^[A-Za-z0-9_.-]+$",
63
+ "transform": [
64
+ "trim"
65
+ ]
66
+ },
67
+ "variable": {
68
+ "type": "string",
69
+ "title": "Environment variable name",
70
+ "description": "Environment variable name containing the cookie as JSON string.",
71
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$",
72
+ "transform": [
73
+ "trim"
74
+ ]
75
+ },
76
+ "path": {
77
+ "type": "string",
78
+ "title": "Cookie file path",
79
+ "description": "File path to cookie file, relative to directory. Supports Netscape cookie format.",
80
+ "pattern": "^(?:[A-Za-z0-9_.-]+\\.(?:txt|cookies)|\\$[A-Za-z_][A-Za-z0-9_]*)$",
81
+ "transform": [
82
+ "trim"
83
+ ]
84
+ },
85
+ "directory": {
86
+ "type": "string",
87
+ "title": "Directory path",
88
+ "description": "Directory containing the cookie file.",
89
+ "transform": [
90
+ "trim"
91
+ ]
92
+ },
93
+ "domain": {
94
+ "type": "string",
95
+ "title": "Cookie domain",
96
+ "description": "Specific domain to filter the cookie by when loading from multi-cookie file (optional).",
97
+ "transform": [
98
+ "trim"
99
+ ]
100
+ }
101
+ },
102
+ "title": "Load cookie (detailed)"
103
+ }
104
+ ],
105
+ "components": {
106
+ "schemas": {
107
+ "string": {
108
+ "type": "string",
109
+ "title": "Cookie name or file path",
110
+ "description": "Name of the specific cookie to load from default location, or file path to cookie file.",
111
+ "pattern": "^[A-Za-z0-9_./\\-]+$",
112
+ "transform": [
113
+ "trim"
114
+ ]
115
+ },
116
+ "object": {
117
+ "type": "object",
118
+ "additionalProperties": false,
119
+ "required": [
120
+ "name"
121
+ ],
122
+ "anyOf": [
123
+ {
124
+ "required": [
125
+ "path"
126
+ ],
127
+ "not": {
128
+ "required": [
129
+ "variable"
130
+ ]
131
+ }
132
+ },
133
+ {
134
+ "required": [
135
+ "variable"
136
+ ],
137
+ "not": {
138
+ "anyOf": [
139
+ {
140
+ "required": [
141
+ "path"
142
+ ]
143
+ },
144
+ {
145
+ "required": [
146
+ "directory"
147
+ ]
148
+ }
149
+ ]
150
+ }
151
+ }
152
+ ],
153
+ "properties": {
154
+ "$schema": {
155
+ "description": "Optional self-describing schema URI for linters",
156
+ "type": "string",
157
+ "format": "uri-reference"
158
+ },
159
+ "name": {
160
+ "type": "string",
161
+ "title": "Cookie name",
162
+ "description": "Name of the specific cookie to load.",
163
+ "pattern": "^[A-Za-z0-9_.-]+$",
164
+ "transform": [
165
+ "trim"
166
+ ]
167
+ },
168
+ "variable": {
169
+ "type": "string",
170
+ "title": "Environment variable name",
171
+ "description": "Environment variable name containing the cookie as JSON string.",
172
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$",
173
+ "transform": [
174
+ "trim"
175
+ ]
176
+ },
177
+ "path": {
178
+ "type": "string",
179
+ "title": "Cookie file path",
180
+ "description": "File path to cookie file, relative to directory. Supports Netscape cookie format.",
181
+ "pattern": "^(?:[A-Za-z0-9_.-]+\\.(?:txt|cookies)|\\$[A-Za-z_][A-Za-z0-9_]*)$",
182
+ "transform": [
183
+ "trim"
184
+ ]
185
+ },
186
+ "directory": {
187
+ "type": "string",
188
+ "title": "Directory path",
189
+ "description": "Directory containing the cookie file.",
190
+ "transform": [
191
+ "trim"
192
+ ]
193
+ },
194
+ "domain": {
195
+ "type": "string",
196
+ "title": "Cookie domain",
197
+ "description": "Specific domain to filter the cookie by when loading from multi-cookie file (optional).",
198
+ "transform": [
199
+ "trim"
200
+ ]
201
+ }
202
+ },
203
+ "title": "Load cookie (detailed)"
204
+ }
205
+ }
206
+ },
207
+ "examples": [
208
+ "session_token",
209
+ "./test-data/auth-session.txt",
210
+ {
211
+ "name": "auth_cookie",
212
+ "variable": "AUTH_COOKIE"
213
+ },
214
+ {
215
+ "name": "session_token",
216
+ "path": "session-token.txt",
217
+ "directory": "./test-data"
218
+ },
219
+ {
220
+ "name": "user_session",
221
+ "path": "saved-cookies.txt",
222
+ "domain": "app.example.com"
223
+ }
224
+ ]
225
+ }