Skip to content

Commit

Permalink
add empty check
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskapp committed Sep 21, 2024
1 parent 449460d commit 599efaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Parser/TypeAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 599efaa

Please sign in to comment.