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

refact(gateapi): swagger 2.4.15 query params are typed now #292

Merged
merged 6 commits into from
Aug 18, 2020

Conversation

kevinawoo
Copy link
Member

@kevinawoo kevinawoo commented Aug 14, 2020

This updates the swagger code gen to 2.4.15 because of 2.3.1 required manual fixes after generating the go code with localvarfiles.

Changes:

  • chore(gateapi): update gateapi from 5c625da5 using swagger 2.4.15
  • docs(contribution): add instructions on how to generate gateapi using 2.4.15
  • refactor(gateapi): swagger 2.4.15 query params are typed now
  • refactor(gateapi): swagger requires valid JSON and correct headers
  • style(cmd): fixed up imports using goimports

@kevinawoo kevinawoo changed the title refact(gateapi): swagger 2.4.14 query params are typed now refact(gateapi): swagger 2.4.15 query params are typed now Aug 17, 2020
@kevinawoo
Copy link
Member Author

Not necessary a blocker, but swallowed decoding errors from the generated swagger Go code was discovered. Doing this work now will help us migrate to the later 2.x version much easier.

This also removes "*malformed" test cases since 2.14.4 doesn't return parsing errors

swagger-api/swagger-codegen#10434 reports the issue.
hopefully swagger-api/swagger-codegen#10429 be merged will add that ability back in.
@Chinikins Chinikins added the ready to merge Approved and Reviewed and ready for merge label Aug 18, 2020
@mergify mergify bot merged commit 2b364bb into spinnaker:master Aug 18, 2020
@kevinawoo kevinawoo deleted the feature/swagger-2.4.14 branch August 18, 2020 00:50
gsapkal pushed a commit to gsapkal/spin that referenced this pull request Sep 10, 2020
…#292)

* chore(gateapi): update gateapi from 5c625da5 using swagger 2.4.14

* feat(contribution): add instructions on how to generate gateapi using 2.4.1

* refact(gateapi): swagger 2.4.14 query params are typed now

* tests(gateapi): gateapi generated code expects valid JSON and headers

This also removes "*malformed" test cases since 2.14.4 doesn't return parsing errors

swagger-api/swagger-codegen#10434 reports the issue.
hopefully swagger-api/swagger-codegen#10429 be merged will add that ability back in.

* refactor(imports): fixed import styling

* chore(gateapi): use swagger-cli 2.4.15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Approved and Reviewed and ready for merge target-release/1.22
Projects
None yet
3 participants