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

[PHP] passes response body to ApiException #6923

Merged
merged 1 commit into from
Nov 13, 2017
Merged

[PHP] passes response body to ApiException #6923

merged 1 commit into from
Nov 13, 2017

Conversation

Alex-D
Copy link
Contributor

@Alex-D Alex-D commented Nov 9, 2017

PR checklist

  • Read the contribution guidelines.
  • Ran the shell script under ./bin/ to update Petstore sample so that CIs can verify the change. (For instance, only need to run ./bin/{LANG}-petstore.sh and ./bin/security/{LANG}-petstore.sh if updating the {LANG} (e.g. php, ruby, python, etc) code generator or {LANG} client's mustache templates). Windows batch files can be found in .\bin\windows\.
  • Filed the PR against the correct branch: 3.0.0 branch for changes related to OpenAPI spec 3.0. Default: master.
  • Copied the technical committee to review the pull request if your PR is targeting a particular programming langauge.

Description of the PR

Add a missing parameter when create an ApiException: body response.

With this patch, we will be able to get the full error, not the trucated one, when we catch the ApiException.

This should not break anythink since it's an optionnal parameter which was not set before and set from this patch.


@jebentier (2017/07) @dkarlovi (2017/07) @mandrean (2017/08) @jfastnacht (2017/09) @ackintosh (2017/09)

@Alex-D
Copy link
Contributor Author

Alex-D commented Nov 9, 2017

Travis seems not be able to fetch swagger-codegen repo :/

@wing328
Copy link
Contributor

wing328 commented Nov 9, 2017

Please ignore the Travis issue for the time being.

@wing328
Copy link
Contributor

wing328 commented Nov 9, 2017

Btw, the change looks good to me 👍

@wing328 wing328 added this to the v2.3.0 milestone Nov 9, 2017
@ackintosh
Copy link
Contributor

LGTM! ✨

@wing328
Copy link
Contributor

wing328 commented Nov 13, 2017

@ackintosh thanks for reviewing the change

The test passes via https://travis-ci.org/swagger-api/swagger-codegen/builds/301186343

@wing328 wing328 merged commit 63d28cf into swagger-api:master Nov 13, 2017
@wing328 wing328 changed the title Fix PHP passes response body to ApiException [PHP] passes response body to ApiException Nov 13, 2017
jimschubert added a commit to jimschubert/swagger-codegen that referenced this pull request Nov 14, 2017
* master: (101 commits)
  [Swift4] Allow for custom dateformatter to be used (swagger-api#6672)
  [haskell-http-client] fix bug when generating models-only (swagger-api#6931)
  fix typo: crediential => credential
  minor typo fix
  [csharp] fix enum serialization of first value (swagger-api#6873)
  [PHP] Improve docs and README (swagger-api#6935)
  Binary mode for file deserialization in python (swagger-api#6936)
  add python tornado test to travis
  [Python/tornado] add integration tests and fix bugs (swagger-api#6925)
  Fix PHP passes response body to ApiException (swagger-api#6923)
  [TypeScript][Node] Resolve TS2532 error (swagger-api#6932)
  skip "all" shell script
  minor formatting change
  Fixes Issue swagger-api#6841, Map for accessing additionalProperties is generated. (swagger-api#6886)
  add tsloughter as owner erlang
  WIP: initial commit for Erlang client generator (swagger-api#6502)
  add back php client test
  Switch Travis image from MacOS to Linux (swagger-api#6937)
  add link to ebook
  [Scala] Default case class Option types to None for non-required fields (swagger-api#6790)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants