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
20.73k stars 6.32k forks source link

[REQ] Open API Generator should provide option to configure Model or DTO generation using Java Records (JEP 395) #17300

Open papatil-mdsol opened 7 months ago

papatil-mdsol commented 7 months ago

Is your feature request related to a problem? Please describe.

Yes, current code generators do not support Java Records (JEP 395) for model or dto generation.

Describe the solution you'd like

Open API Generator should provide an option to configure Model or DTO generation using Java Records (JEP 395)

Describe alternatives you've considered

openapi-processor-maven-plugin currently supports this feature but has less community support. Considering this, OpenAPITools should include this feature in openapi-processor-maven-plugin and openapi-processor-graddle-plugin.

Additional context

GlobeDaBoarder commented 7 months ago

Hi! I do agree that having an option of generating DTOs would be a wonderful feature. I believe this feature request has already been proposed here: https://github.com/OpenAPITools/openapi-generator/issues/10490