diff --git a/src/Parser/TypeAPI.php b/src/Parser/TypeAPI.php index fe020a3..22985e0 100644 --- a/src/Parser/TypeAPI.php +++ b/src/Parser/TypeAPI.php @@ -263,7 +263,7 @@ private function parseResponse(\stdClass $data): Operation\Response } $contentType = $data->contentType ?? null; - if (is_string($contentType)) { + if (is_string($contentType) && !empty($contentType)) { $type = ContentType::from($contentType); } else { $schema = $data->schema ?? null;