diff --git a/src/PSR7/SpecFinder.php b/src/PSR7/SpecFinder.php index 8d586895..2b0a5030 100644 --- a/src/PSR7/SpecFinder.php +++ b/src/PSR7/SpecFinder.php @@ -211,6 +211,10 @@ public function findResponseSpec($addr): ResponseSpec $response = $operation->responses->getResponse((string) $addr->responseCode()); + if(! $response){ + $response = $operation->responses->getResponse(substr($addr->responseCode(),0,1) . 'XX'); + } + if (! $response) { $response = $operation->responses->getResponse('default'); }