This repository was archived by the owner on Oct 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathschema.js
More file actions
118 lines (118 loc) · 3.47 KB
/
schema.js
File metadata and controls
118 lines (118 loc) · 3.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
module.exports = {
$id: 'heroku-cli',
type: 'object',
properties: {
cliPjson: { $ref: '#/definitions/cli_pjson' },
pluginPjson: { $ref: '#/definitions/plugin_pjson' },
// command: { $ref: '#/definitions/command' },
},
definitions: {
// command: {
// type: 'object',
// additionalProperties: false,
// required: [
// '_version'
// ],
// properties: {
// id: {type: 'string'},
// description: {type: 'string'},
// hidden: {type: 'boolean'},
// usage: {type: 'string'},
// help: {type: 'string'},
// _version: {type: 'string'},
// aliases: {type: 'array', items: {type: 'string'}},
// plugin: {type: 'object'},
// helpLine: {type: 'object'},
// run: {type: 'object'},
// args: {
// type: 'array',
// items: {
// type: 'object',
// additionalProperties: false,
// properties: {
// name: {type: 'string'},
// description: {type: 'string'},
// required: {type: 'boolean'},
// hidden: {type: 'boolean'},
// }
// }
// },
// flags: {
// type: 'object',
// additionalProperties: {
// type: 'object',
// additionalProperties: false,
// properties: {
// name: {type: 'string'},
// char: {type: 'string', maxLength: 1},
// description: {type: 'string'},
// hidden: {type: 'boolean'},
// required: {type: 'boolean'},
// allowNo: {type: 'boolean'},
// multiple: {type: 'boolean'},
// }
// }
// },
// },
// },
plugin_pjson: {
type: 'object',
properties: {
'cli-engine': {
type: 'object',
additionalProperties: false,
properties: {
type: { type: 'string', pattern: 'plugin' },
commands: { type: 'string' },
topics: { $ref: '#/definitions/topics' },
},
},
},
},
cli_pjson: {
properties: {
'cli-engine': {
type: 'object',
additionalProperties: false,
properties: {
type: { type: 'string', pattern: 'cli' },
bin: { type: 'string' },
commands: { type: 'string' },
defaultCommand: { type: 'string' },
dirname: { type: 'string' },
npmRegistry: { type: 'string' },
userPluginsEnabled: { type: 'boolean' },
corePlugins: { type: 'array', items: { type: 'string' } },
hooks: {
additionalProperties: {
anyOf: [{ type: 'string' }, { type: 'array', items: { type: 'string' } }],
},
},
s3: {
type: 'object',
additionalProperties: false,
required: ['host'],
properties: {
host: { type: 'string' },
},
},
topics: { $ref: '#/definitions/topics' },
},
},
},
},
topics: {
type: 'object',
additionalProperties: {
type: 'object',
additionalProperties: false,
required: ['description'],
properties: {
description: { type: 'string' },
hidden: { type: 'boolean' },
subtopics: { $ref: '#/definitions/topics' },
},
},
},
},
}