forked from SchemaStore/schemastore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
anywork-ac-1.0.json
148 lines (148 loc) · 5.12 KB
/
anywork-ac-1.0.json
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://json.schemastore.org/anywork-ac-1.0.json",
"additionalProperties": true,
"allOf": [
{
"if": {
"properties": {
"ctype": {
"const": "swagger-codegen"
}
}
},
"then": {
"required": ["swagger-codegen"],
"properties": {
"swagger-codegen": {
"title": "swagger codegen options",
"description": "swagger-codegen options",
"type": "object",
"required": ["actions"],
"properties": {
"actions": {
"description": "Actions",
"type": ["string", "array"],
"default": "all",
"minItems": 1,
"uniqueItems": true,
"items": {
"description": "An action",
"type": ["string", "object"],
"oneOf": [
{
"type": "string",
"enum": [
"all",
"download",
"generate",
"correction",
"build",
"publish"
]
},
{
"title": "action",
"type": "object",
"required": ["target", "schema"],
"properties": {
"target": {
"$ref": "https://json.schemastore.org/base.json#/definitions/path",
"description": "A path to repository including `node_modules` directory to install desired services"
},
"schema": {
"$ref": "#/definitions/schema"
}
},
"additionalProperties": false
}
]
}
},
"npm": {
"title": "NPM specifications",
"description": "NPM repository specifications to publish",
"type": "object",
"required": ["server", "token"],
"properties": {
"server": {
"description": "Packages registry address",
"type": "string",
"default": "http://verdaccio.anywork.local:4873"
},
"token": {
"description": "An access token to packages registry",
"type": "string"
},
"prefix": {
"description": "A prefix of package names starting with `@` character",
"type": "string",
"default": "@anywork",
"examples": ["@anywork", "@moduleOne"],
"pattern": "^@\\w+$"
}
}
},
"schemas": {
"title": "schemas",
"description": "Schemas (microservices) to generate libraries",
"type": "array",
"items": {
"title": "schema",
"description": "A schema",
"type": "object",
"properties": {
"name": {
"$ref": "#/definitions/schema"
},
"lastVersion": {
"description": "A last published version",
"type": "string",
"pattern": "\\d{1,}\\.\\d{1,}\\.\\d{1,}"
},
"url": {
"description": "A url",
"type": "string",
"examples": ["http://somewhere/path/to/swagger.json"],
"pattern": "http[s]?:\\/\\/.*\\/swagger\\.json"
}
}
}
},
"typescript": {
"description": "TypeScript version to install on generated codes repository",
"type": "string",
"default": "^4.1.6",
"pattern": "^[\\^~]?(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$"
}
},
"additionalProperties": false
}
}
}
}
],
"definitions": {
"schema": {
"description": "A Swagger endpoint name",
"type": "string",
"enum": ["authentication", "documentStorage", "shared"]
}
},
"description": "AnyWork automation config schema",
"properties": {
"ctype": {
"description": "A configuration type",
"type": "string"
},
"cversion": {
"description": "A configuration version of configuration",
"type": "integer",
"default": 1,
"minimum": 1
}
},
"required": ["ctype", "cversion"],
"title": "AnyWork Automation config",
"type": "object"
}