Open tolgap opened 2 years ago
@tolgap I added some thoughts to this ticket ticket, we use Python and achieved this by transforming the output in the OpenAPI schema on the server.
A detailed description of the solution can be found on our project template
Some of us are "forced" to use APIs that accept and return PascalCase models.
It would be amazing if a
--transformModelCase
option was added. It would supportsnake
,pascal
,camel
.It would allow us to change a model from:
to
Of course, if casings are changed at the model level, this needs to be "reset" at the body/query level as well. Another option for this could be provided:
--transformRequestCase
and/or--transformResponseCase
.Or perhaps someone else has a better idea on how this could be achieved. I would love to know if anyone managed to get around this.