@hozu/cli 0.1.0 → 0.3.0

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.
@@ -0,0 +1,405 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$ref": "#/definitions/CheckOutput",
4
+ "definitions": {
5
+ "CheckOutput": {
6
+ "type": "object",
7
+ "properties": {
8
+ "ok": {
9
+ "type": "boolean"
10
+ },
11
+ "types": {
12
+ "type": "object",
13
+ "properties": {
14
+ "ok": {
15
+ "type": "boolean"
16
+ },
17
+ "skipped": {
18
+ "type": "boolean"
19
+ },
20
+ "errors": {
21
+ "type": "array",
22
+ "items": {
23
+ "$ref": "#/definitions/TypeIssue"
24
+ }
25
+ }
26
+ },
27
+ "required": [
28
+ "ok",
29
+ "skipped",
30
+ "errors"
31
+ ],
32
+ "additionalProperties": false
33
+ },
34
+ "validate": {
35
+ "$ref": "#/definitions/ValidateOutput"
36
+ }
37
+ },
38
+ "required": [
39
+ "ok",
40
+ "types",
41
+ "validate"
42
+ ],
43
+ "additionalProperties": false
44
+ },
45
+ "TypeIssue": {
46
+ "type": "object",
47
+ "properties": {
48
+ "file": {
49
+ "type": "string"
50
+ },
51
+ "line": {
52
+ "type": "number"
53
+ },
54
+ "column": {
55
+ "type": "number"
56
+ },
57
+ "code": {
58
+ "type": "string"
59
+ },
60
+ "message": {
61
+ "type": "string"
62
+ }
63
+ },
64
+ "required": [
65
+ "file",
66
+ "line",
67
+ "column",
68
+ "code",
69
+ "message"
70
+ ],
71
+ "additionalProperties": false
72
+ },
73
+ "ValidateOutput": {
74
+ "type": "object",
75
+ "properties": {
76
+ "ok": {
77
+ "type": "boolean"
78
+ },
79
+ "hash": {
80
+ "type": "string"
81
+ },
82
+ "summary": {
83
+ "type": "object",
84
+ "properties": {
85
+ "errors": {
86
+ "type": "number"
87
+ },
88
+ "warnings": {
89
+ "type": "number"
90
+ }
91
+ },
92
+ "required": [
93
+ "errors",
94
+ "warnings"
95
+ ],
96
+ "additionalProperties": false
97
+ },
98
+ "coverage": {
99
+ "type": "object",
100
+ "additionalProperties": {
101
+ "$ref": "#/definitions/Coverage"
102
+ }
103
+ },
104
+ "lock": {
105
+ "type": "string",
106
+ "enum": [
107
+ "missing",
108
+ "checked",
109
+ "updated",
110
+ "skipped"
111
+ ]
112
+ },
113
+ "styles": {
114
+ "type": "string",
115
+ "enum": [
116
+ "checked",
117
+ "unavailable"
118
+ ]
119
+ },
120
+ "diagnostics": {
121
+ "type": "array",
122
+ "items": {
123
+ "$ref": "#/definitions/Diagnostic"
124
+ }
125
+ }
126
+ },
127
+ "required": [
128
+ "ok",
129
+ "hash",
130
+ "summary",
131
+ "coverage",
132
+ "lock",
133
+ "styles",
134
+ "diagnostics"
135
+ ],
136
+ "additionalProperties": false
137
+ },
138
+ "Coverage": {
139
+ "type": "object",
140
+ "properties": {
141
+ "covered": {
142
+ "type": "number"
143
+ },
144
+ "total": {
145
+ "type": "number"
146
+ }
147
+ },
148
+ "required": [
149
+ "covered",
150
+ "total"
151
+ ],
152
+ "additionalProperties": false
153
+ },
154
+ "Diagnostic": {
155
+ "type": "object",
156
+ "properties": {
157
+ "code": {
158
+ "$ref": "#/definitions/DiagnosticCode"
159
+ },
160
+ "severity": {
161
+ "$ref": "#/definitions/Severity"
162
+ },
163
+ "message": {
164
+ "type": "string"
165
+ },
166
+ "location": {
167
+ "$ref": "#/definitions/Location"
168
+ },
169
+ "cause": {
170
+ "type": "string"
171
+ },
172
+ "fix": {
173
+ "anyOf": [
174
+ {
175
+ "$ref": "#/definitions/Fix"
176
+ },
177
+ {
178
+ "type": "null"
179
+ }
180
+ ]
181
+ }
182
+ },
183
+ "required": [
184
+ "code",
185
+ "severity",
186
+ "message",
187
+ "location",
188
+ "cause",
189
+ "fix"
190
+ ],
191
+ "additionalProperties": false
192
+ },
193
+ "DiagnosticCode": {
194
+ "type": "string",
195
+ "enum": [
196
+ "HZ001",
197
+ "HZ002",
198
+ "HZ003",
199
+ "HZ004",
200
+ "HZ005",
201
+ "HZ006",
202
+ "HZ007",
203
+ "HZ008",
204
+ "HZ009",
205
+ "HZ010",
206
+ "HZ011",
207
+ "HZ012",
208
+ "HZ013",
209
+ "HZ014",
210
+ "HZ015",
211
+ "HZ016",
212
+ "HZ017",
213
+ "HZ018",
214
+ "HZ019",
215
+ "HZ020",
216
+ "HZ021",
217
+ "HZ022",
218
+ "HZ023",
219
+ "HZ024",
220
+ "HZ025",
221
+ "HZ026",
222
+ "HZ027",
223
+ "HZ028",
224
+ "HZ029",
225
+ "HZ030",
226
+ "HZ031",
227
+ "HZ032",
228
+ "HZ033",
229
+ "HZ034",
230
+ "HZ035",
231
+ "HZ036",
232
+ "HZ037",
233
+ "HZ038",
234
+ "HZ039",
235
+ "HZ040",
236
+ "HZ041",
237
+ "HZ042",
238
+ "HZ043"
239
+ ]
240
+ },
241
+ "Severity": {
242
+ "type": "string",
243
+ "enum": [
244
+ "error",
245
+ "warning"
246
+ ]
247
+ },
248
+ "Location": {
249
+ "type": "object",
250
+ "properties": {
251
+ "feature": {
252
+ "type": [
253
+ "string",
254
+ "null"
255
+ ]
256
+ },
257
+ "pointer": {
258
+ "type": "string"
259
+ },
260
+ "source": {
261
+ "anyOf": [
262
+ {
263
+ "$ref": "#/definitions/SourceLoc"
264
+ },
265
+ {
266
+ "type": "null"
267
+ }
268
+ ]
269
+ }
270
+ },
271
+ "required": [
272
+ "feature",
273
+ "pointer",
274
+ "source"
275
+ ],
276
+ "additionalProperties": false
277
+ },
278
+ "SourceLoc": {
279
+ "type": "object",
280
+ "properties": {
281
+ "file": {
282
+ "type": "string"
283
+ },
284
+ "line": {
285
+ "type": "number"
286
+ },
287
+ "column": {
288
+ "type": "number"
289
+ }
290
+ },
291
+ "required": [
292
+ "file",
293
+ "line",
294
+ "column"
295
+ ],
296
+ "additionalProperties": false
297
+ },
298
+ "Fix": {
299
+ "type": "object",
300
+ "properties": {
301
+ "summary": {
302
+ "type": "string"
303
+ },
304
+ "snippet": {
305
+ "type": [
306
+ "string",
307
+ "null"
308
+ ]
309
+ },
310
+ "patch": {
311
+ "anyOf": [
312
+ {
313
+ "type": "array",
314
+ "items": {
315
+ "$ref": "#/definitions/JsonPatchOp"
316
+ }
317
+ },
318
+ {
319
+ "type": "null"
320
+ }
321
+ ]
322
+ }
323
+ },
324
+ "required": [
325
+ "summary",
326
+ "snippet",
327
+ "patch"
328
+ ],
329
+ "additionalProperties": false
330
+ },
331
+ "JsonPatchOp": {
332
+ "anyOf": [
333
+ {
334
+ "type": "object",
335
+ "properties": {
336
+ "op": {
337
+ "type": "string",
338
+ "enum": [
339
+ "add",
340
+ "replace"
341
+ ]
342
+ },
343
+ "path": {
344
+ "type": "string"
345
+ },
346
+ "value": {
347
+ "$ref": "#/definitions/Json"
348
+ }
349
+ },
350
+ "required": [
351
+ "op",
352
+ "path",
353
+ "value"
354
+ ],
355
+ "additionalProperties": false
356
+ },
357
+ {
358
+ "type": "object",
359
+ "properties": {
360
+ "op": {
361
+ "type": "string",
362
+ "const": "remove"
363
+ },
364
+ "path": {
365
+ "type": "string"
366
+ }
367
+ },
368
+ "required": [
369
+ "op",
370
+ "path"
371
+ ],
372
+ "additionalProperties": false
373
+ }
374
+ ]
375
+ },
376
+ "Json": {
377
+ "anyOf": [
378
+ {
379
+ "type": "null"
380
+ },
381
+ {
382
+ "type": "boolean"
383
+ },
384
+ {
385
+ "type": "number"
386
+ },
387
+ {
388
+ "type": "string"
389
+ },
390
+ {
391
+ "type": "array",
392
+ "items": {
393
+ "$ref": "#/definitions/Json"
394
+ }
395
+ },
396
+ {
397
+ "type": "object",
398
+ "additionalProperties": {
399
+ "$ref": "#/definitions/Json"
400
+ }
401
+ }
402
+ ]
403
+ }
404
+ }
405
+ }