You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code block using #requiredParamCount does not seem to work in Java's and other languages' template:
{{#requiredParamCount}}
// verify required params are set
if({{/requiredParamCount}}{{#requiredParams}} {{paramName}} == null {{#hasMore}}|| {{/hasMore}}{{/requiredParams}}{{#requiredParamCount}}) {
throw new ApiException(400, "missing required params");
}
{{/requiredParamCount}}
as this code block does not produce anything even thought the method has required parameter(s). For example, updatePetWithForm has a required parameter petId but there's no code generated for verifying the required parameter petId:
The following code block using
#requiredParamCount
does not seem to work in Java's and other languages' template:as this code block does not produce anything even thought the method has required parameter(s). For example,
updatePetWithForm
has a required parameterpetId
but there's no code generated for verifying the required parameterpetId
:I can look into fixing
{{#requireParamCount}}
or use{{#allParams}}{{#required}}
as a workaroundThe text was updated successfully, but these errors were encountered: