|
32 | 32 | "type": "object", |
33 | 33 | "patternProperties": { |
34 | 34 | "^": { |
35 | | - "if": { |
36 | | - "properties": { |
37 | | - "resourceType": { |
38 | | - "not": { |
39 | | - "type": "string" |
40 | | - } |
41 | | - } |
42 | | - } |
43 | | - }, |
44 | | - "then": { |
45 | | - "oneOf": [ |
46 | | - { "$ref": "#/definitions/stringProperty" }, |
47 | | - { "$ref": "#/definitions/stringEnumProperty" }, |
48 | | - { "$ref": "#/definitions/arrayProperty" }, |
49 | | - { "$ref": "#/definitions/objectProperty" }, |
50 | | - { "$ref": "#/definitions/integerProperty" }, |
51 | | - { "$ref": "#/definitions/booleanProperty" }, |
52 | | - { "$ref": "#/definitions/anyProperty" } |
53 | | - ] |
54 | | - }, |
55 | | - "else": { |
56 | | - "oneOf": [ |
57 | | - { "$ref": "#/definitions/resourceProperty" }, |
58 | | - { "$ref": "#/definitions/resourceArrayProperty" } |
59 | | - ] |
60 | | - } |
| 35 | + "oneOf": [ |
| 36 | + { "$ref": "#/definitions/stringProperty" }, |
| 37 | + { "$ref": "#/definitions/stringEnumProperty" }, |
| 38 | + { "$ref": "#/definitions/arrayProperty" }, |
| 39 | + { "$ref": "#/definitions/objectProperty" }, |
| 40 | + { "$ref": "#/definitions/integerProperty" }, |
| 41 | + { "$ref": "#/definitions/booleanProperty" }, |
| 42 | + { "$ref": "#/definitions/resourceProperty" }, |
| 43 | + { "$ref": "#/definitions/resourceArrayProperty" }, |
| 44 | + { "$ref": "#/definitions/anyProperty" } |
| 45 | + ] |
61 | 46 | } |
62 | 47 | } |
63 | 48 | } |
64 | 49 | }, |
65 | 50 | "additionalProperties": false, |
66 | 51 | "required": ["title", "type", "properties", "schemaVersion"], |
67 | 52 | "definitions": { |
68 | | - "resourceProperty": { |
69 | | - "title": "Resource property", |
70 | | - "type": "object", |
71 | | - "additionalProperties": false, |
72 | | - "properties": { |
73 | | - "type": { "enum": ["string"] }, |
74 | | - "title": { "type": "string" }, |
75 | | - "description": { "type": "string" }, |
76 | | - "editor": { "enum": ["resourcePicker", "hidden"] }, |
77 | | - "resourceType": { "enum": ["dataset", "keyValueStore", "requestQueue"] }, |
78 | | - "default": { "type": "string" }, |
79 | | - "prefill": { "type": "string" }, |
80 | | - "example": { "type": "string" }, |
81 | | - "nullable": { "type": "boolean" }, |
82 | | - "sectionCaption": { "type": "string" }, |
83 | | - "sectionDescription": { "type": "string" } |
84 | | - }, |
85 | | - "required": ["type", "title", "description", "resourceType"] |
86 | | - }, |
87 | | - "resourceArrayProperty": { |
88 | | - "title": "Resource array property", |
89 | | - "type": "object", |
90 | | - "additionalProperties": false, |
91 | | - "properties": { |
92 | | - "type": { "enum": ["array"] }, |
93 | | - "title": { "type": "string" }, |
94 | | - "description": { "type": "string" }, |
95 | | - "editor": { "enum": ["resourcePicker", "hidden"] }, |
96 | | - "default": { "type": "array" }, |
97 | | - "prefill": { "type": "array" }, |
98 | | - "example": { "type": "array" }, |
99 | | - "nullable": { "type": "boolean" }, |
100 | | - "minItems": { "type": "integer" }, |
101 | | - "maxItems": { "type": "integer" }, |
102 | | - "uniqueItems": { "type": "boolean" }, |
103 | | - "resourceType": { "enum": ["dataset", "keyValueStore", "requestQueue"] }, |
104 | | - "sectionCaption": { "type": "string" }, |
105 | | - "sectionDescription": { "type": "string" } |
106 | | - }, |
107 | | - "required": ["type", "title", "description", "resourceType"] |
108 | | - }, |
109 | 53 | "stringEnumProperty": { |
110 | 54 | "title": "Enum property", |
111 | 55 | "type": "object", |
|
348 | 292 | }, |
349 | 293 | "required": ["type", "title", "description"] |
350 | 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 | + }, |
351 | 336 | "anyProperty": { |
352 | 337 | "title": "Any property", |
353 | 338 | "type": "object", |
|
0 commit comments