mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix(taskprocessing): fix OpenAPI error and generate specs
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
This commit is contained in:
parent
0584ebf628
commit
a2e531c34c
3 changed files with 268 additions and 14 deletions
|
|
@ -176,10 +176,10 @@ use OCP\TaskProcessing\ShapeEnumValue;
|
|||
* description: string,
|
||||
* inputShape: CoreTaskProcessingShape[],
|
||||
* inputShapeEnumValues: array{name: string, value: string}[][],
|
||||
* inputShapeDefaults: array<array-key, numeric|string>,
|
||||
* inputShapeDefaults: array<string, numeric|string>,
|
||||
* optionalInputShape: CoreTaskProcessingShape[],
|
||||
* optionalInputShapeEnumValues: array{name: string, value: string}[][],
|
||||
* optionalInputShapeDefaults: array<array-key, numeric|string>,
|
||||
* optionalInputShapeDefaults: array<string, numeric|string>,
|
||||
* outputShape: CoreTaskProcessingShape[],
|
||||
* outputShapeEnumValues: array{name: string, value: string}[][],
|
||||
* optionalOutputShape: CoreTaskProcessingShape[],
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue