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

fix: server openapi model generation #2230

Merged
merged 1 commit into from
Mar 21, 2023
Merged

fix: server openapi model generation #2230

merged 1 commit into from
Mar 21, 2023

Conversation

schoren
Copy link
Contributor

@schoren schoren commented Mar 21, 2023

This PR fixes the makefile target that generates the openapi model for the server, and updates the server with the latest openapi changes.

Checklist

  • tested locally
  • added new dependencies
  • updated the docs
  • added a test

@@ -80,7 +80,6 @@ server/openapi: $(OPENAPI_SRC_FILES)
$(OPENAPI_GENERATOR_CLI) generate \
-i api/openapi.yaml \
-g go-server \
--global-property apis="api" \
Copy link
Contributor

Choose a reason for hiding this comment

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

@danielbdias I remember you added this to avoid having the controller.go requiring us to add the missing route controllers right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is the cause for the server generation not working. Removing this doesn't break the server

@schoren schoren merged commit 98240bc into main Mar 21, 2023
@schoren schoren deleted the fix-server-generate branch March 21, 2023 20:29
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