|
39 | 39 | { "$ref": "#/definitions/objectProperty" }, |
40 | 40 | { "$ref": "#/definitions/integerProperty" }, |
41 | 41 | { "$ref": "#/definitions/booleanProperty" }, |
| 42 | + { "$ref": "#/definitions/resourceProperty" }, |
| 43 | + { "$ref": "#/definitions/resourceArrayProperty" }, |
42 | 44 | { "$ref": "#/definitions/anyProperty" } |
43 | 45 | ] |
44 | 46 | } |
|
86 | 88 | "title": { "type": "string" }, |
87 | 89 | "description": { "type": "string" }, |
88 | 90 | "nullable": { "type": "boolean" }, |
89 | | - "editor": { "enum": ["javascript", "python", "textfield", "textarea", "datepicker", "hidden", "dataset", "keyValueStore", "requestQueue"] }, |
| 91 | + "editor": { "enum": ["javascript", "python", "textfield", "textarea", "datepicker", "hidden"] }, |
90 | 92 | "isSecret": { "type": "boolean" } |
91 | 93 | }, |
92 | 94 | "required": ["type", "title", "description", "editor"], |
|
290 | 292 | }, |
291 | 293 | "required": ["type", "title", "description"] |
292 | 294 | }, |
| 295 | + "resourceProperty": { |
| 296 | + "title": "Resource property", |
| 297 | + "type": "object", |
| 298 | + "additionalProperties": false, |
| 299 | + "properties": { |
| 300 | + "type": { "enum": ["string"] }, |
| 301 | + "title": { "type": "string" }, |
| 302 | + "description": { "type": "string" }, |
| 303 | + "editor": { "enum": ["resourcePicker", "hidden"] }, |
| 304 | + "resourceType": { "enum": ["dataset", "keyValueStore", "requestQueue"] }, |
| 305 | + "default": { "type": "string" }, |
| 306 | + "prefill": { "type": "string" }, |
| 307 | + "example": { "type": "string" }, |
| 308 | + "nullable": { "type": "boolean" }, |
| 309 | + "sectionCaption": { "type": "string" }, |
| 310 | + "sectionDescription": { "type": "string" } |
| 311 | + }, |
| 312 | + "required": ["type", "title", "description", "resourceType"] |
| 313 | + }, |
| 314 | + "resourceArrayProperty": { |
| 315 | + "title": "Resource array property", |
| 316 | + "type": "object", |
| 317 | + "additionalProperties": false, |
| 318 | + "properties": { |
| 319 | + "type": { "enum": ["array"] }, |
| 320 | + "title": { "type": "string" }, |
| 321 | + "description": { "type": "string" }, |
| 322 | + "editor": { "enum": ["resourcePicker", "hidden"] }, |
| 323 | + "default": { "type": "array" }, |
| 324 | + "prefill": { "type": "array" }, |
| 325 | + "example": { "type": "array" }, |
| 326 | + "nullable": { "type": "boolean" }, |
| 327 | + "minItems": { "type": "integer" }, |
| 328 | + "maxItems": { "type": "integer" }, |
| 329 | + "uniqueItems": { "type": "boolean" }, |
| 330 | + "resourceType": { "enum": ["dataset", "keyValueStore", "requestQueue"] }, |
| 331 | + "sectionCaption": { "type": "string" }, |
| 332 | + "sectionDescription": { "type": "string" } |
| 333 | + }, |
| 334 | + "required": ["type", "title", "description", "resourceType"] |
| 335 | + }, |
293 | 336 | "anyProperty": { |
294 | 337 | "title": "Any property", |
295 | 338 | "type": "object", |
|
0 commit comments