We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f430f5d + 9a4371b commit 630b399Copy full SHA for 630b399
1 file changed
src/DefinitionGenerator.ts
@@ -144,8 +144,14 @@ export class DefinitionGenerator {
144
operationObj.deprecated = true;
145
}
146
147
- operationObj.parameters = this.getParametersFromConfig(documentationConfig);
148
- operationObj.requestBody = this.getRequestBodiesFromConfig(documentationConfig);
+ if (operationObj.requestBody) {
+ operationObj.requestBody = this.getRequestBodiesFromConfig(documentationConfig);
149
+ }
150
+
151
+ if (operationObj.parameters) {
152
+ operationObj.parameters = this.getParametersFromConfig(documentationConfig);
153
154
155
operationObj.responses = this.getResponsesFromConfig(documentationConfig);
156
157
return operationObj;
0 commit comments