mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Fix OpenAPI text redirect response schemas
This commit is contained in:
@@ -292,7 +292,7 @@ class OpenAPI3 extends Format
|
||||
}
|
||||
|
||||
if (!(\is_array($model)) && $model->isNone()) {
|
||||
if ($produces === ContentType::TEXT->value && $response->getCode() !== 204) {
|
||||
if ($produces === ContentType::TEXT->value && !\in_array($response->getCode(), [204, 301, 302, 308], true)) {
|
||||
$temp['responses'][(string)$response->getCode()] = [
|
||||
'description' => 'Text',
|
||||
'content' => [
|
||||
|
||||
Reference in New Issue
Block a user