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

feat(template): replace openapiv2 generator with gnostic #153

Merged
merged 9 commits into from
Nov 18, 2022

Conversation

Ricagraca
Copy link
Contributor

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.

@linuxluigi
Copy link
Collaborator

Looks good to me, will try to find some time today to test your code

Copy link
Contributor

@brumhard brumhard left a 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 :)

embed_gen.go Outdated Show resolved Hide resolved
_template/api/proto/buf.yaml Outdated Show resolved Hide resolved
@linuxluigi linuxluigi changed the title Replaced openapiv2 generator with openapi v3 using gnostic on buf gen… feat(template): Replaced openapiv2 generator with openapi v3 using gnostic on buf gen… Nov 4, 2022
@brumhard brumhard changed the title feat(template): Replaced openapiv2 generator with openapi v3 using gnostic on buf gen… feat(template): replace openapiv2 generator with gnostic Nov 7, 2022
Copy link
Contributor

@brumhard brumhard left a comment

Choose a reason for hiding this comment

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

lgtm

@brumhard brumhard merged commit b71120b into SchwarzIT:main Nov 18, 2022
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.

4 participants