aboutsummaryrefslogtreecommitdiffstats
path: root/core/openapi.json
diff options
context:
space:
mode:
Diffstat (limited to 'core/openapi.json')
-rw-r--r--core/openapi.json139
1 files changed, 133 insertions, 6 deletions
diff --git a/core/openapi.json b/core/openapi.json
index 869bc4ef2c5..d597796f94e 100644
--- a/core/openapi.json
+++ b/core/openapi.json
@@ -496,8 +496,7 @@
"required": [
"name",
"description",
- "type",
- "mandatory"
+ "type"
],
"properties": {
"name": {
@@ -515,6 +514,7 @@
"Image",
"Video",
"File",
+ "Enum",
"ListOfNumbers",
"ListOfTexts",
"ListOfImages",
@@ -522,9 +522,6 @@
"ListOfVideos",
"ListOfFiles"
]
- },
- "mandatory": {
- "type": "boolean"
}
}
},
@@ -602,7 +599,15 @@
"name",
"description",
"inputShape",
- "outputShape"
+ "inputShapeEnumValues",
+ "inputShapeDefaults",
+ "optionalInputShape",
+ "optionalInputShapeEnumValues",
+ "optionalInputShapeDefaults",
+ "outputShape",
+ "outputShapeEnumValues",
+ "optionalOutputShape",
+ "optionalOutputShapeEnumValues"
],
"properties": {
"name": {
@@ -617,11 +622,133 @@
"$ref": "#/components/schemas/TaskProcessingShape"
}
},
+ "inputShapeEnumValues": {
+ "type": "array",
+ "items": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "required": [
+ "name",
+ "value"
+ ],
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "value": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ },
+ "inputShapeDefaults": {
+ "type": "object",
+ "additionalProperties": {
+ "oneOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "string"
+ }
+ ]
+ }
+ },
+ "optionalInputShape": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/TaskProcessingShape"
+ }
+ },
+ "optionalInputShapeEnumValues": {
+ "type": "array",
+ "items": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "required": [
+ "name",
+ "value"
+ ],
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "value": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ },
+ "optionalInputShapeDefaults": {
+ "type": "object",
+ "additionalProperties": {
+ "oneOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "string"
+ }
+ ]
+ }
+ },
"outputShape": {
"type": "array",
"items": {
"$ref": "#/components/schemas/TaskProcessingShape"
}
+ },
+ "outputShapeEnumValues": {
+ "type": "array",
+ "items": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "required": [
+ "name",
+ "value"
+ ],
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "value": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ },
+ "optionalOutputShape": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/TaskProcessingShape"
+ }
+ },
+ "optionalOutputShapeEnumValues": {
+ "type": "array",
+ "items": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "required": [
+ "name",
+ "value"
+ ],
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "value": {
+ "type": "string"
+ }
+ }
+ }
+ }
}
}
},