OpenAPITools/openapi-generator

[GO][Server] Question: Life after generation

开放

#3,547 创建于 2019年8月2日

 (7 条评论) (4 个反应) (0 位负责人)Java (7,516 个派生)batch import
Enhancement: FeatureHacktoberfestServer: Gohelp wanted

仓库指标

星标
 (26,243 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

What is the recommended flow after generation server? Should I change code under ./go folder? Or I need to override Api methods in my own files? Would the interface generation, in this case, be a better solution?

I guess that maybe one of the ways is the implementation of logic in a particular file and adding a file to the .openapi-generator-ignore, but how in this case will the update occur if the specification YAML changes?

I have tried https://github.com/mikkeloscar/gin-swagger before. I'd like this approach. Should we try to implement it here?

贡献者指南