`update_my_user` payload is an x-discord-union of 1 type
Closed this issue · 2 comments
danny-may commented
The update_my_user
endpoint accepts an x-discord-union of a single type. Wouldnt it be better typed as just referencing the inner type instead?
discord-api-spec/specs/openapi.json
Lines 419 to 434 in a36f804
Proposed:
"operationId": "update_my_user",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/BotAccountPatchRequestPartial"
}
}
},
"required": true
},
mbialecka commented
I agree, it's on the backlog
mbialecka commented
should be fixed