cyclosproject / ng-openapi-gen

An OpenAPI 3.0 codegen for Angular
MIT License
403 stars 134 forks source link

Request for correct serialization of array properties with 'explode' option #318

Open hackemann opened 8 months ago

hackemann commented 8 months ago

When the explode option is set to true in the OpenAPI specification and the object being serialized contains an array property, the array is incorrectly serialized as a comma-separated string in the query parameters. For example, ?param=1,2,3 instead of ?param=1&param=2&param=3.

The serializeValue method in the requestBuilder does not distinguish whether the explode option is enabled.

luisfpg commented 2 months ago

Could you give an example of a wrongly generated code? Explode is handled in query parameters, for example.