discord/discord-api-spec

Erroneous request body on GET `preview_prune_guild`

danny-may opened this issue · 1 comments

When fixing #21 a request body mistakenly got added to the preview_prune_guild operation, which is a GET operation and so cannot have a request body.

"get": {
"operationId": "preview_prune_guild",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"days": {
"type": [
"integer",
"null"
],
"minimum": 1,
"maximum": 30
},
"compute_prune_count": {
"type": [
"boolean",
"null"
]
},
"include_roles": {
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": [
"string",
"null"
],
"format": "snowflake"
},
"maxItems": 100,
"uniqueItems": true
},
{
"type": "null"
}
]
}
}
}
}
},
"required": true
},
"responses": {
"200": {
"description": "200 response for preview_prune_guild",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GuildPruneResponse"
}
}
}
},
"4XX": {
"$ref": "#/components/responses/ClientErrorResponse"
}
},
"security": [
{
"BotToken": []
}
]
},

should be fixed now