File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5252 "version-changelog" : " ^2.1.0"
5353 },
5454 "dependencies" : {
55- "@jdw/jst" : " ^2.0.0-beta.9 " ,
55+ "@jdw/jst" : " ^2.0.0-beta.12 " ,
5656 "bluebird" : " ^3.5.0" ,
5757 "chalk" : " ^2.0.1" ,
5858 "fs-extra" : " ^4.0.1" ,
Original file line number Diff line number Diff line change @@ -144,8 +144,14 @@ export class DefinitionGenerator {
144144 operationObj . deprecated = true ;
145145 }
146146
147- operationObj . parameters = this . getParametersFromConfig ( documentationConfig ) ;
148- operationObj . requestBody = this . getRequestBodiesFromConfig ( documentationConfig ) ;
147+ if ( operationObj . requestBody ) {
148+ operationObj . requestBody = this . getRequestBodiesFromConfig ( documentationConfig ) ;
149+ }
150+
151+ if ( operationObj . parameters ) {
152+ operationObj . parameters = this . getParametersFromConfig ( documentationConfig ) ;
153+ }
154+
149155 operationObj . responses = this . getResponsesFromConfig ( documentationConfig ) ;
150156
151157 return operationObj ;
You can’t perform that action at this time.
0 commit comments