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 go client using go-swagger 0.16.0 #103

Merged
merged 6 commits into from
Sep 7, 2018
Merged

Conversation

keiko713
Copy link
Contributor

@keiko713 keiko713 commented Sep 6, 2018

What title says. This generates some user operations, since it was added recently to swagger.yml but regeneration didn't happen at that time.

There are many changes but looks like they're mostly:

  • removing all unnecessary code inside of Validate
  • add a model for user
  • use the option --with-flatten=full since it was the "default" with 0.12.0 (previous version), this allows upgrading the version to cause minimal changes (also test passes)
  • travis uses 1.10 and 1.11 now

Overall this looks pretty safe to me, but I'm... not really familiar with this, so any advice for the way to test it out or proving that this is okay is welcome!

@keiko713 keiko713 force-pushed the regenerate-go-client branch from 4e9519c to a811584 Compare September 6, 2018 23:57
Copy link
Contributor

@calavera calavera left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -16,7 +16,7 @@ deps: ## Download dependencies.
go get -u github.com/golang/dep/cmd/dep && cd ./go && dep ensure

generate: validate ## Generate the API Go client and the JSON document for the UI.
swagger generate client -A netlify -f swagger.yml -t go -c plumbing
swagger generate client -A netlify -f swagger.yml -t go -c plumbing --with-flatten=full
Copy link
Contributor

Choose a reason for hiding this comment

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

This has to do with the flattening of the different models.

@bcomnes bcomnes merged commit b9417c5 into master Sep 7, 2018
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.

3 participants