Skip to content

Commit 52ed2ba

Browse files
committed
feat(input_schema): Resource properties
1 parent 0c27c05 commit 52ed2ba

File tree

1 file changed

+44
-1
lines changed

1 file changed

+44
-1
lines changed

packages/input_schema/src/schema.json

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@
3939
{ "$ref": "#/definitions/objectProperty" },
4040
{ "$ref": "#/definitions/integerProperty" },
4141
{ "$ref": "#/definitions/booleanProperty" },
42+
{ "$ref": "#/definitions/resourceProperty" },
43+
{ "$ref": "#/definitions/resourceArrayProperty" },
4244
{ "$ref": "#/definitions/anyProperty" }
4345
]
4446
}
@@ -86,7 +88,7 @@
8688
"title": { "type": "string" },
8789
"description": { "type": "string" },
8890
"nullable": { "type": "boolean" },
89-
"editor": { "enum": ["javascript", "python", "textfield", "textarea", "datepicker", "hidden", "dataset", "keyValueStore", "requestQueue"] },
91+
"editor": { "enum": ["javascript", "python", "textfield", "textarea", "datepicker", "hidden"] },
9092
"isSecret": { "type": "boolean" }
9193
},
9294
"required": ["type", "title", "description", "editor"],
@@ -290,6 +292,47 @@
290292
},
291293
"required": ["type", "title", "description"]
292294
},
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+
},
293336
"anyProperty": {
294337
"title": "Any property",
295338
"type": "object",

0 commit comments

Comments
 (0)