-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathutils.definitions.schema.json
166 lines (163 loc) Β· 5.33 KB
/
utils.definitions.schema.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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/AmadlaOrg/common-json-schemas/master/utils.definitions.schema.json",
"title": "Utils Definition Schema",
"description": "Defines the definitions of different util schemas.",
"$defs": {
"secret": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the secret."
},
"environment": {
"type": "string",
"description": "The environment where the secret is used."
},
"file": {
"type": "string",
"description": "Path to the secret file."
},
"external": {
"type": ["boolean", "object"],
"properties": {
"name": {
"type": "string",
"description": "Name of the external resource."
}
},
"required": ["name"],
"description": "Indicates whether the secret is external and provides details if applicable."
},
"labels": {
"$ref": "https://raw.githubusercontent.com/AmadlaOrg/common-json-schemas/master/datatypes.definitions.schema.json#/$defs/list_or_dict",
"description": "Labels associated with the secret."
},
"driver": {
"type": "string",
"description": "The driver to use for the secret."
},
"driver_opts": {
"type": "object",
"patternProperties": {
"^.+$": {
"type": ["string", "number"],
"description": "Driver options as key-value pairs."
}
},
"additionalProperties": false,
"description": "Options for the secret driver."
},
"template_driver": {
"type": "string",
"description": "The template driver to use."
}
},
"required": ["name"],
"additionalProperties": false,
"patternProperties": {
"^x-": {
"type": "string",
"description": "Custom properties starting with 'x-'."
}
}
},
"config": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the configuration."
},
"content": {
"type": "string",
"description": "The content of the configuration."
},
"environment": {
"type": "string",
"description": "The environment where the configuration is applied."
},
"file": {
"type": "string",
"description": "Path to the configuration file."
},
"external": {
"type": ["boolean", "object"],
"properties": {
"name": {
"type": "string",
"deprecated": true,
"description": "Name of the external configuration resource."
}
},
"required": ["name"],
"description": "Indicates whether the configuration is external and provides details if applicable."
},
"labels": {
"$ref": "https://raw.githubusercontent.com/AmadlaOrg/common-json-schemas/master/datatypes.definitions.schema.json#/$defs/list_or_dict",
"description": "Labels associated with the configuration."
},
"template_driver": {
"type": "string",
"description": "The template driver to use."
}
},
"required": ["name"],
"additionalProperties": false,
"patternProperties": {
"^x-": {
"type": "string",
"description": "Custom properties starting with 'x-'."
}
}
},
"command": {
"type": "object",
"properties": {
"command": {
"oneOf": [
{ "type": "null" },
{ "type": "string" },
{ "type": "array", "items": { "type": "string" } }
],
"description": "Command to execute, can be null, a single string, or an array of strings."
}
},
"additionalProperties": false,
"description": "Defines a command that can be executed."
},
"env_file": {
"type": "object",
"properties": {
"env_file": {
"oneOf": [
{ "type": "string" },
{
"type": "array",
"items": {
"oneOf": [
{ "type": "string" },
{
"type": "object",
"properties": {
"path": { "type": "string", "description": "Path to the environment file." },
"required": { "type": "boolean", "default": true, "description": "Indicates if the environment file is required." }
},
"required": ["path"],
"additionalProperties": false,
"description": "Detailed information about the environment file."
}
]
},
"description": "A list of environment files, each can be a string or an object with detailed info."
}
],
"description": "Environment file paths or detailed configurations."
}
},
"additionalProperties": false,
"description": "Defines environment file configurations."
}
}
}