A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/OpenAPITools/openapi-generator/issues/15265 below:

[BUG][Spring] x-spring-paginated fails if no params is defined in the operation · Issue #15265 · OpenAPITools/openapi-generator · GitHub

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


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4