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.
1 parent 4f8d660 commit 3a42ec3Copy full SHA for 3a42ec3
src/swagger/generator.ts
@@ -164,7 +164,7 @@ export class SpecGenerator {
164
} else if (this.hasFormParams(method)) {
165
pathMethod.consumes = pathMethod.consumes || [];
166
pathMethod.consumes.push('application/x-www-form-urlencoded');
167
- } else if (this.supportsBodyParameters(method.name)) {
+ } else if (this.supportsBodyParameters(method.method)) {
168
169
pathMethod.consumes.push('application/json');
170
}
0 commit comments