|
152 | 152 | "type": { "enum": ["string"] }, |
153 | 153 | "title": { "type": "string" }, |
154 | 154 | "description": { "type": "string" }, |
| 155 | + "prefill": { "type": "string" }, |
155 | 156 | "example": { "type": "string" }, |
156 | 157 | "nullable": { "type": "boolean" }, |
157 | 158 | "editor": { "enum": ["textfield", "textarea", "hidden"] }, |
|
166 | 167 | "type": "object", |
167 | 168 | "properties": { |
168 | 169 | "type": { "enum": ["array"] }, |
169 | | - "editor": { "enum": ["json", "requestListSources", "pseudoUrls", "globs", "keyValue", "stringList", "select", "hidden"] } |
| 170 | + "editor": { "enum": ["json", "requestListSources", "pseudoUrls", "globs", "keyValue", "stringList", "select", "hidden"] }, |
| 171 | + "isSecret": { "type": "boolean" } |
170 | 172 | }, |
171 | 173 | "additionalProperties": true, |
172 | 174 | "required": ["type", "title", "description", "editor"], |
173 | 175 | "if": { |
174 | 176 | "properties": { |
175 | | - "editor": { "const": "select" } |
| 177 | + "isSecret": { |
| 178 | + "not": { |
| 179 | + "const": true |
| 180 | + } |
| 181 | + } |
176 | 182 | } |
177 | 183 | }, |
178 | 184 | "then": { |
179 | | - "additionalProperties": false, |
180 | | - "required": ["items"], |
181 | | - "properties": { |
182 | | - "type": { "enum": ["array"] }, |
183 | | - "editor": { "enum": ["select"] }, |
184 | | - "title": { "type": "string" }, |
185 | | - "description": { "type": "string" }, |
186 | | - "default": { "type": "array" }, |
187 | | - "prefill": { "type": "array" }, |
188 | | - "example": { "type": "array" }, |
189 | | - "nullable": { "type": "boolean" }, |
190 | | - "minItems": { "type": "integer" }, |
191 | | - "maxItems": { "type": "integer" }, |
192 | | - "uniqueItems": { "type": "boolean" }, |
193 | | - "sectionCaption": { "type": "string" }, |
194 | | - "sectionDescription": { "type": "string" }, |
195 | | - "items": { |
196 | | - "type": "object", |
197 | | - "additionalProperties": false, |
198 | | - "properties": { |
199 | | - "type": { "enum": ["string"] }, |
200 | | - "enum": { |
201 | | - "type": "array", |
202 | | - "items": { "type": "string" }, |
203 | | - "uniqueItems": true |
| 185 | + "if": { |
| 186 | + "properties": { |
| 187 | + "editor": { "const": "select" } |
| 188 | + } |
| 189 | + }, |
| 190 | + "then": { |
| 191 | + "additionalProperties": false, |
| 192 | + "required": ["items"], |
| 193 | + "properties": { |
| 194 | + "type": { "enum": ["array"] }, |
| 195 | + "editor": { "enum": ["select"] }, |
| 196 | + "title": { "type": "string" }, |
| 197 | + "description": { "type": "string" }, |
| 198 | + "default": { "type": "array" }, |
| 199 | + "prefill": { "type": "array" }, |
| 200 | + "example": { "type": "array" }, |
| 201 | + "nullable": { "type": "boolean" }, |
| 202 | + "minItems": { "type": "integer" }, |
| 203 | + "maxItems": { "type": "integer" }, |
| 204 | + "uniqueItems": { "type": "boolean" }, |
| 205 | + "sectionCaption": { "type": "string" }, |
| 206 | + "sectionDescription": { "type": "string" }, |
| 207 | + "items": { |
| 208 | + "type": "object", |
| 209 | + "additionalProperties": false, |
| 210 | + "properties": { |
| 211 | + "type": { "enum": ["string"] }, |
| 212 | + "enum": { |
| 213 | + "type": "array", |
| 214 | + "items": { "type": "string" }, |
| 215 | + "uniqueItems": true |
| 216 | + }, |
| 217 | + "enumTitles": { |
| 218 | + "type": "array", |
| 219 | + "items": { "type": "string" } |
| 220 | + } |
204 | 221 | }, |
205 | | - "enumTitles": { |
206 | | - "type": "array", |
207 | | - "items": { "type": "string" } |
208 | | - } |
| 222 | + "required": ["type", "enum"] |
209 | 223 | }, |
210 | | - "required": ["type", "enum"] |
| 224 | + "isSecret": { "enum": [false] } |
| 225 | + } |
| 226 | + }, |
| 227 | + "else": { |
| 228 | + "additionalProperties": false, |
| 229 | + "properties": { |
| 230 | + "type": { "enum": ["array"] }, |
| 231 | + "editor": { "enum": ["json", "requestListSources", "pseudoUrls", "globs", "keyValue", "stringList", "hidden"] }, |
| 232 | + "title": { "type": "string" }, |
| 233 | + "description": { "type": "string" }, |
| 234 | + "default": { "type": "array" }, |
| 235 | + "prefill": { "type": "array" }, |
| 236 | + "example": { "type": "array" }, |
| 237 | + "nullable": { "type": "boolean" }, |
| 238 | + "minItems": { "type": "integer" }, |
| 239 | + "maxItems": { "type": "integer" }, |
| 240 | + "uniqueItems": { "type": "boolean" }, |
| 241 | + "sectionCaption": { "type": "string" }, |
| 242 | + "sectionDescription": { "type": "string" }, |
| 243 | + "placeholderKey": { "type": "string" }, |
| 244 | + "placeholderValue": { "type": "string" }, |
| 245 | + "patternKey": { "type": "string" }, |
| 246 | + "patternValue": { "type": "string" }, |
| 247 | + "isSecret": { "enum": [false] } |
211 | 248 | } |
212 | 249 | } |
213 | 250 | }, |
214 | 251 | "else": { |
215 | 252 | "additionalProperties": false, |
216 | 253 | "properties": { |
217 | 254 | "type": { "enum": ["array"] }, |
218 | | - "editor": { "enum": ["json", "requestListSources", "pseudoUrls", "globs", "keyValue", "stringList", "hidden"] }, |
| 255 | + "editor": { "enum": ["json", "hidden"] }, |
219 | 256 | "title": { "type": "string" }, |
220 | 257 | "description": { "type": "string" }, |
221 | | - "default": { "type": "array" }, |
222 | 258 | "prefill": { "type": "array" }, |
223 | 259 | "example": { "type": "array" }, |
224 | 260 | "nullable": { "type": "boolean" }, |
|
227 | 263 | "uniqueItems": { "type": "boolean" }, |
228 | 264 | "sectionCaption": { "type": "string" }, |
229 | 265 | "sectionDescription": { "type": "string" }, |
230 | | - "placeholderKey": { "type": "string" }, |
231 | | - "placeholderValue": { "type": "string" }, |
232 | | - "patternKey": { "type": "string" }, |
233 | | - "patternValue": { "type": "string" } |
| 266 | + "isSecret": { "enum": [true] } |
234 | 267 | } |
235 | 268 | } |
236 | 269 | }, |
237 | 270 | "objectProperty": { |
238 | 271 | "title": "Object property", |
239 | 272 | "type": "object", |
240 | | - "additionalProperties": false, |
| 273 | + "additionalProperties": true, |
241 | 274 | "properties": { |
242 | 275 | "type": { "enum": ["object"] }, |
243 | 276 | "title": { "type": "string" }, |
244 | 277 | "description": { "type": "string" }, |
245 | | - "default": { "type": "object" }, |
246 | | - "prefill": { "type": "object" }, |
247 | | - "example": { "type": "object" }, |
248 | | - "patternKey": { "type": "string" }, |
249 | | - "patternValue": { "type": "string" }, |
250 | | - "nullable": { "type": "boolean" }, |
251 | | - "minProperties": { "type": "integer" }, |
252 | | - "maxProperties": { "type": "integer" }, |
253 | | - |
254 | 278 | "editor": { "enum": ["json", "proxy", "hidden"] }, |
255 | | - "sectionCaption": { "type": "string" }, |
256 | | - "sectionDescription": { "type": "string" } |
| 279 | + "isSecret": { "type": "boolean" } |
257 | 280 | }, |
258 | | - "required": ["type", "title", "description", "editor"] |
| 281 | + "required": ["type", "title", "description", "editor"], |
| 282 | + "if": { |
| 283 | + "properties": { |
| 284 | + "isSecret": { |
| 285 | + "not": { |
| 286 | + "const": true |
| 287 | + } |
| 288 | + } |
| 289 | + } |
| 290 | + }, |
| 291 | + "then": { |
| 292 | + "additionalProperties": false, |
| 293 | + "properties": { |
| 294 | + "type": { "enum": ["object"] }, |
| 295 | + "title": { "type": "string" }, |
| 296 | + "description": { "type": "string" }, |
| 297 | + "default": { "type": "object" }, |
| 298 | + "prefill": { "type": "object" }, |
| 299 | + "example": { "type": "object" }, |
| 300 | + "patternKey": { "type": "string" }, |
| 301 | + "patternValue": { "type": "string" }, |
| 302 | + "nullable": { "type": "boolean" }, |
| 303 | + "minProperties": { "type": "integer" }, |
| 304 | + "maxProperties": { "type": "integer" }, |
| 305 | + "editor": { "enum": ["json", "proxy", "hidden"] }, |
| 306 | + "sectionCaption": { "type": "string" }, |
| 307 | + "sectionDescription": { "type": "string" }, |
| 308 | + "isSecret": { "enum": [false] } |
| 309 | + } |
| 310 | + }, |
| 311 | + "else": { |
| 312 | + "additionalProperties": false, |
| 313 | + "properties": { |
| 314 | + "type": { "enum": ["object"] }, |
| 315 | + "title": { "type": "string" }, |
| 316 | + "description": { "type": "string" }, |
| 317 | + "prefill": { "type": "object" }, |
| 318 | + "example": { "type": "object" }, |
| 319 | + "patternKey": { "type": "string" }, |
| 320 | + "patternValue": { "type": "string" }, |
| 321 | + "nullable": { "type": "boolean" }, |
| 322 | + "minProperties": { "type": "integer" }, |
| 323 | + "maxProperties": { "type": "integer" }, |
| 324 | + "editor": { "enum": ["json", "hidden"] }, |
| 325 | + "sectionCaption": { "type": "string" }, |
| 326 | + "sectionDescription": { "type": "string" }, |
| 327 | + "isSecret": { "enum": [true] } |
| 328 | + } |
| 329 | + } |
259 | 330 | }, |
260 | 331 | "integerProperty": { |
261 | 332 | "title": "Integer property", |
|
0 commit comments