Has anyone had production issues because controlle...
# spring
e
Has anyone had production issues because controllers, DTOs, and everything else for endpoints are generated directly from the OpenAPI spec instead of being created manually (or through an LLM)? Automatic deterministic generation sounds great https://github.com/OpenAPITools/openapi-generator (basically generating source code as a derivative of the OpenAPI .yml file — similar to how JOOQ generates source code as a derivative of the database). But maybe there were some maintenance problems (for example, duplicate DTOs in the generated sources). Some people prefer one approach, others prefer the other.
h
We had a lot of issues with that generator and have since switched to https://github.com/cjbooms/fabrikt. It works fine, the only difficulty was around reuse (if you don't want the same model generated by multiple modules).
👍 1
e
Thank you