Skip to content

Commit

Permalink
Merge pull request #78 from Fantom409/patch-1
Browse files Browse the repository at this point in the history
Fetch schema from content
  • Loading branch information
byjg committed Oct 11, 2023
2 parents 00d7743 + 3bb0c0f commit 4ec04d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Base/Body.php
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ protected function matchSchema($name, $schemaArray, $body)
}

if(!isset($schemaArray['$ref']) && isset($schemaArray['content'])) {
$schemaArray['$ref'] = $schemaArray['content'][key($schemaArray['content'])]['schema']['$ref'];
$schemaArray = $schemaArray['content'][key($schemaArray['content'])]['schema'];
}

// Get References and try to match it again
Expand Down

0 comments on commit 4ec04d0

Please sign in to comment.