diff --git a/src/buildV3.ts b/src/buildV3.ts index fcf2cc39..31181a7a 100644 --- a/src/buildV3.ts +++ b/src/buildV3.ts @@ -169,7 +169,7 @@ export default (openapi: OpenAPIV3.Document) => { } if (target.responses) { - const code = Object.keys(target.responses).find(code => code.startsWith('20')) + const code = Object.keys(target.responses).find(code => code.match(/^(20\d|30\d)$/)) if (code) { params.push({ name: 'status',