We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23ca851 commit 0358899Copy full SHA for 0358899
1 file changed
generate-spec
@@ -735,7 +735,11 @@ foreach ($scopePaths as $scope => $paths) {
735
foreach ($paths as $url => $urlRoutes) {
736
foreach ($urlRoutes as $httpMethod => $routeData) {
737
foreach ($routeData['responses'] as $statusCode => $responseData) {
738
- $usedSchemas = array_merge($usedSchemas, Helpers::collectUsedRefs($responseData['content']['application/json']['schema']));
+ if (isset($responseData['content']['application/json'])) {
739
+ $usedSchemas = array_merge($usedSchemas, Helpers::collectUsedRefs($responseData['content']['application/json']['schema']));
740
+ } else {
741
+ Logger::warning("app", "Could not read used schemas for response to '$httpMethod $url' with status code $statusCode");
742
+ }
743
}
744
745
0 commit comments