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

Regenerate swagger client from DCE master #72

Merged
merged 2 commits into from
Feb 17, 2020

Conversation

eschwartz
Copy link
Contributor

@eschwartz eschwartz commented Feb 14, 2020

Proposed changes

Regenerate the swagger client from the latest DCE master (commit f6bb5ba)

Context: I'd like to open a PR to support some new DCE features, which require that I regenerate the client. But regenerating changes a lot of lines of code, so I'd prefer it in a separate PR.

I ran:

  • make openapi DCE_REPO=/path/to/my/local/repo/at/master
  • make ifaces
  • make mocks

I had to make a couple manual tweaks on top of that, to get go compiling, but very minor.

resulted in generated code not getting updated, after swagger changes
@@ -5,8 +5,9 @@ all: mocks test build
# Generate client code from swagger in a local dce repo (make openapi DCE_REPO=/path/to/dce)
openapi:
echo "\nMANUAL STEP: Install goswagger cli tool if needed: https://goswagger.io/install.html\n"
swagger flatten --with-expand $(DCE_REPO)/modules/swagger.yaml >> $(PWD)/out.yaml
swagger flatten --with-expand $(DCE_REPO)/modules/swagger.yaml > $(PWD)/out.yaml
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 >> redirect was actually causing the code generation to fail

@eschwartz eschwartz merged commit eb0ae9b into Optum:master Feb 17, 2020
@eschwartz eschwartz deleted the generate branch February 17, 2020 22:08
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