-
Notifications
You must be signed in to change notification settings - Fork 25
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
feat(template): replace openapiv2 generator with gnostic #153
feat(template): replace openapiv2 generator with gnostic #153
Conversation
Looks good to me, will try to find some time today to test your code |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi there,
sry for keeping you waiting for so long. I really appreciate the effort. In fact, I've been looking for a way to create openapiv3 specs for a long time so this is a great addition 👍🏻
I found a few minor things while testing.
Also since it's not included in the PR: could you also fix _template/buf.gen.yaml
and rename
- name: openapiv2
out: api/openapi
to
- name: openapi
out: api/openapi
Thank you very much :)
_template/api/proto/{{.Base.appName}}/v1/{{.Base.appName}}.proto
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
This PR replaces the current openapiv2 generator for the oas with openapi from gnostic. The annotations for v3 were imported in the template proto file, instead of the v2 ones.