Erroneous request body on GET `preview_prune_guild`
danny-may opened this issue · 1 comments
danny-may commented
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.
discord-api-spec/specs/openapi.json
Lines 7708 to 7778 in 36312e3
"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": [] | |
} | |
] | |
}, |
mbialecka commented
should be fixed now