Skip to content

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
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