Skip to content

Commit

Permalink
fixup! feat(polls): allow editing of draft polls
Browse files Browse the repository at this point in the history
  • Loading branch information
miaulalala committed Dec 5, 2024
1 parent 865b0c9 commit d0c855c
Show file tree
Hide file tree
Showing 4 changed files with 170 additions and 28 deletions.
81 changes: 67 additions & 14 deletions openapi-full.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
}
]
}
}
}
Expand Down Expand Up @@ -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"
}
}
}
}
}
}
}
}
}
}
}
}
Expand Down
81 changes: 67 additions & 14 deletions openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
}
]
}
}
}
Expand Down Expand Up @@ -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"
}
}
}
}
}
}
}
}
}
}
}
}
Expand Down
18 changes: 18 additions & 0 deletions src/types/openapi/openapi-full.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5425,6 +5425,8 @@ export interface operations {
data: {
/** @enum {string} */
error: "draft" | "options" | "question" | "room";
} | {
error: string;
};
};
};
Expand Down Expand Up @@ -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": {
Expand Down
18 changes: 18 additions & 0 deletions src/types/openapi/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4906,6 +4906,8 @@ export interface operations {
data: {
/** @enum {string} */
error: "draft" | "options" | "question" | "room";
} | {
error: string;
};
};
};
Expand Down Expand Up @@ -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": {
Expand Down

0 comments on commit d0c855c

Please sign in to comment.