Bug Report Checklist
Description
When using generator spring/spring-cloud and delegatePattern is active:
<generatorName>spring</generatorName>
<library>spring-cloud</library>
<configOptions>
<delegatePattern>true</delegatePattern>
</configOptions>
And try to compile an oas2/oas3 spec with x-spring-paginated: true and no params, generator fails due to the template is introducing a "," prior to Pageable object
obtenerDatosEncuestaDecesos(, final Pageable pageable);
The problem seems to came from this point at apiDelegate.mustache where the "," is introduced always
openapi-generator version
All 6.x versions up to 6.5.0 included
OpenAPI declaration file content or url
swagger.txt
Generation Details
<generatorName>spring</generatorName>
<library>spring-cloud</library>
<configOptions>
<delegatePattern>true</delegatePattern>
</configOptions>
Steps to reproduce
Related issues/PRs
N/A
Suggest a fix
check if no params is defined, and remove "," in this cases.
Problem came from this line in apiDelegate.mustache where the "," is introduced always
Bug Report Checklist
obtenerDatosEncuestaDecesos(final Pageable pageable);notobtenerDatosEncuestaDecesos(, final Pageable pageable);Description
When using generator spring/spring-cloud and delegatePattern is active:
And try to compile an oas2/oas3 spec with x-spring-paginated: true and no params, generator fails due to the template is introducing a "," prior to Pageable object
obtenerDatosEncuestaDecesos(, final Pageable pageable);The problem seems to came from this point at apiDelegate.mustache where the "," is introduced always
openapi-generator version
All 6.x versions up to 6.5.0 included
OpenAPI declaration file content or url
swagger.txt
Generation Details
Steps to reproduce
Related issues/PRs
N/A
Suggest a fix
check if no params is defined, and remove "," in this cases.
Problem came from this line in apiDelegate.mustache where the "," is introduced always