diff --git a/openapi-full.json b/openapi-full.json index 680a2069cb5..92e0672a74c 100644 --- a/openapi-full.json +++ b/openapi-full.json @@ -9329,21 +9329,36 @@ "$ref": "#/components/schemas/OCSMeta" }, "data": { - "type": "object", - "required": [ - "error" - ], - "properties": { - "error": { - "type": "string", - "enum": [ - "draft", - "options", - "question", - "room" - ] + "anyOf": [ + { + "type": "object", + "required": [ + "error" + ], + "properties": { + "error": { + "type": "string", + "enum": [ + "draft", + "options", + "question", + "room" + ] + } + } + }, + { + "type": "object", + "required": [ + "error" + ], + "properties": { + "error": { + "type": "string" + } + } } - } + ] } } } @@ -10270,6 +10285,44 @@ } } } + }, + "500": { + "description": "Poll could not be closed", + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "ocs" + ], + "properties": { + "ocs": { + "type": "object", + "required": [ + "meta", + "data" + ], + "properties": { + "meta": { + "$ref": "#/components/schemas/OCSMeta" + }, + "data": { + "type": "object", + "required": [ + "error" + ], + "properties": { + "error": { + "type": "string" + } + } + } + } + } + } + } + } + } } } } diff --git a/openapi.json b/openapi.json index fe799c07ad8..0efb726f529 100644 --- a/openapi.json +++ b/openapi.json @@ -9216,21 +9216,36 @@ "$ref": "#/components/schemas/OCSMeta" }, "data": { - "type": "object", - "required": [ - "error" - ], - "properties": { - "error": { - "type": "string", - "enum": [ - "draft", - "options", - "question", - "room" - ] + "anyOf": [ + { + "type": "object", + "required": [ + "error" + ], + "properties": { + "error": { + "type": "string", + "enum": [ + "draft", + "options", + "question", + "room" + ] + } + } + }, + { + "type": "object", + "required": [ + "error" + ], + "properties": { + "error": { + "type": "string" + } + } } - } + ] } } } @@ -10157,6 +10172,44 @@ } } } + }, + "500": { + "description": "Poll could not be closed", + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "ocs" + ], + "properties": { + "ocs": { + "type": "object", + "required": [ + "meta", + "data" + ], + "properties": { + "meta": { + "$ref": "#/components/schemas/OCSMeta" + }, + "data": { + "type": "object", + "required": [ + "error" + ], + "properties": { + "error": { + "type": "string" + } + } + } + } + } + } + } + } + } } } } diff --git a/src/types/openapi/openapi-full.ts b/src/types/openapi/openapi-full.ts index c6f1565378a..3dfd6f8dc28 100644 --- a/src/types/openapi/openapi-full.ts +++ b/src/types/openapi/openapi-full.ts @@ -5425,6 +5425,8 @@ export interface operations { data: { /** @enum {string} */ error: "draft" | "options" | "question" | "room"; + } | { + error: string; }; }; }; @@ -5794,6 +5796,22 @@ export interface operations { }; }; }; + /** @description Poll could not be closed */ + 500: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + ocs: { + meta: components["schemas"]["OCSMeta"]; + data: { + error: string; + }; + }; + }; + }; + }; }; }; "public_share_auth-create-room": { diff --git a/src/types/openapi/openapi.ts b/src/types/openapi/openapi.ts index 4fd36a59c9c..feab2d9cb9b 100644 --- a/src/types/openapi/openapi.ts +++ b/src/types/openapi/openapi.ts @@ -4906,6 +4906,8 @@ export interface operations { data: { /** @enum {string} */ error: "draft" | "options" | "question" | "room"; + } | { + error: string; }; }; }; @@ -5275,6 +5277,22 @@ export interface operations { }; }; }; + /** @description Poll could not be closed */ + 500: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + ocs: { + meta: components["schemas"]["OCSMeta"]; + data: { + error: string; + }; + }; + }; + }; + }; }; }; "public_share_auth-create-room": {