Skip to content

Commit

Permalink
Automated spec update
Browse files Browse the repository at this point in the history
  • Loading branch information
Nelly (automation bot) committed Aug 3, 2023
1 parent 871c898 commit 4649f52
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 6 deletions.
45 changes: 42 additions & 3 deletions specs/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -417,9 +417,31 @@
},
"patch": {
"operationId": "update_my_user",
"requestBody": {
"content": {
"application/json": {
"schema": {
"anyOf": [
{
"$ref": "#/components/schemas/BotAccountPatchRequestPartial"
}
],
"x-discord-union": "oneOf"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for update_my_user"
"description": "200 response for update_my_user",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UserPIIResponse"
}
}
}
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
Expand Down Expand Up @@ -9125,7 +9147,7 @@
]
},
"minItems": 1,
"maxItems": 1521
"maxItems": 5
}
},
"required": [
Expand Down Expand Up @@ -12989,6 +13011,23 @@
"metadata"
]
},
"BotAccountPatchRequestPartial": {
"type": "object",
"properties": {
"username": {
"type": "string",
"minLength": 2,
"maxLength": 32
},
"avatar": {
"type": [
"string",
"null"
],
"contentEncoding": "base64"
}
}
},
"Button": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -14934,7 +14973,7 @@
},
"name": {
"type": "string",
"maxLength": 152133
"maxLength": 32
},
"animated": {
"type": [
Expand Down
45 changes: 42 additions & 3 deletions specs/openapi_preview.json
Original file line number Diff line number Diff line change
Expand Up @@ -417,9 +417,31 @@
},
"patch": {
"operationId": "update_my_user",
"requestBody": {
"content": {
"application/json": {
"schema": {
"anyOf": [
{
"$ref": "#/components/schemas/BotAccountPatchRequestPartial"
}
],
"x-discord-union": "oneOf"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for update_my_user"
"description": "200 response for update_my_user",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UserPIIResponse"
}
}
}
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
Expand Down Expand Up @@ -9125,7 +9147,7 @@
]
},
"minItems": 1,
"maxItems": 1521
"maxItems": 5
}
},
"required": [
Expand Down Expand Up @@ -12989,6 +13011,23 @@
"metadata"
]
},
"BotAccountPatchRequestPartial": {
"type": "object",
"properties": {
"username": {
"type": "string",
"minLength": 2,
"maxLength": 32
},
"avatar": {
"type": [
"string",
"null"
],
"contentEncoding": "base64"
}
}
},
"Button": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -14938,7 +14977,7 @@
},
"name": {
"type": "string",
"maxLength": 152133
"maxLength": 32
},
"animated": {
"type": [
Expand Down

0 comments on commit 4649f52

Please sign in to comment.