OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
explode: true does not cause array values to be exploded when given inside a parameter object, as it does using the native or apache-httpclient library.
Example: PagingParams = { sort: [ 'amount,desc', 'name,asc'] } -- a typical Pageable object in Spring Web
Generated query string using library restclient ,resttemplate or webclient:
❌ /api/search?sort=amount,desc,name,asc
Generated query string using library native or apache-httpclient:
✅ /api/search?sort=amount,desc&sort=name,asc
Bug Report Checklist
Description
explode: true
does not cause array values to be exploded when given inside a parameter object, as it does using thenative
orapache-httpclient
library.Example:
PagingParams = { sort: [ 'amount,desc', 'name,asc'] }
-- a typical Pageable object in Spring WebGenerated query string using library
restclient
,resttemplate
orwebclient
: ❌/api/search?sort=amount,desc,name,asc
Generated query string using library
native
orapache-httpclient
: ✅/api/search?sort=amount,desc&sort=name,asc
openapi-generator version
v7.9.0
OpenAPI declaration file content or url
Generation Details
✅ generated DefaultApi.java using library
native
orapache-httpclient
:❌ generated DefaultApi.java using library
restclient
orwebclient
❌ generated DefaultApi.java using using library
resttemplate
Steps to reproduce