OpenAPITools / openapi-generator

OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
https://openapi-generator.tech
Apache License 2.0
21.96k stars 6.59k forks source link

Configure HTTP client library with different JSON processing library #1648

Open idkw opened 5 years ago

idkw commented 5 years ago

Looking at customisation.md it seems that the generator imposes to use specific pairs of http client/json processing libraries.

The pairs are specified as :

However for better integration in our existing applications, we'd prefer the following pair :

HTTP client: OKHttp 3.6.0. JSON processing: Jackson 2.9.7

How would I go about using this ? Should I craft new mustaches template and code generator by hand which might break in future releases ? Shouldn't the configuration allow to separately specify the HTTP library and the json processing library ?

Thank you

wing328 commented 5 years ago

Shouldn't the configuration allow to separately specify the HTTP library and the json processing library ?

I think that's the ideal case but I don't think anyone has time to work on that yet.

Would you have time to contribute the enhancement?

idkw commented 5 years ago

I'd like to, though I don't have much time either and don't really know where to start. Could you indicate where to look first in the project ?