Open facundomedica opened 4 years ago
This is also an issue for Python form-data in https://github.com/OpenAPITools/openapi-generator/issues/4796
I wonder if this issue is universal, and not language specific.
UPDATE: Confirmed this is a language specific issue. Until someone is brave enough to sort out that mess, an acceptable workaround would be to use the java generator.
I debugged a bit and found where the client template uses the parameter: https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/kotlin-client/api.mustache#L41
But I'm not sure where that parameter is generated and added to the mustache json.
@wing328 I am also facing this issue. Is the #2976 a fix for this?
Description
A query param that is in snake case is converted to camelCase in the generated code, so the requests do
myendpoint?deviceId=AAAAA
instead ofmyendpoint?device_id=AAAAA
openapi-generator version
OpenAPI declaration file content or url