We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8c9347c + 70fa5f8 commit 3b9f960Copy full SHA for 3b9f960
src/metadata/methodGenerator.ts
@@ -33,7 +33,9 @@ export class MethodGenerator {
33
const identifier = this.node.name as ts.Identifier;
34
const type = resolveType(this.node.type, this.genericTypeMap);
35
const responses = this.getMethodResponses();
36
- responses.push(this.getMethodSuccessResponse(type));
+ if (0 === responses.length) {
37
+ responses.push(this.getMethodSuccessResponse(type));
38
+ }
39
40
return {
41
consumes: this.getDecoratorValues('Accept'),
0 commit comments