Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V3 対応 #2

Merged
merged 5 commits into from
May 6, 2020
Merged

V3 対応 #2

merged 5 commits into from
May 6, 2020

Conversation

motoki317
Copy link
Member

@motoki317 motoki317 commented May 6, 2020

v3-api.yamlとopenapi-generator 4.3.0で再生成しました :fastparrot:

config.yamlに以下を追加して、出るエラーを少なくした
その代わりにoptのstruct名とenum名(const)にAPI名が入って、名前が少し冗長になった

enumClassPrefix: true
structPrefix: true

OneOf...と出るやつだけ手動でinterface{}に戻しました

参考
https://openapi-generator.tech/docs/generators/go
OpenAPITools/openapi-generator#1745

Copy link
Member

@sapphi-red sapphi-red left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 :kansya:

@sapphi-red sapphi-red merged commit 9cd3873 into traPtitech:master May 6, 2020
@motoki317 motoki317 deleted the v3 branch May 6, 2020 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants