Skip to content

Conversation

@4brunu
Copy link
Contributor

@4brunu 4brunu commented Dec 24, 2020

Currently the Swift5 ErrorResponse doesn't have the URLResponse, which has a lot of useful information to analyse the error.
In this PR I added URLResponse to ErrorResponse.

PR checklist

  • Read the contribution guidelines.
  • Pull Request title clearly describes the work in the pull request and Pull Request description provides details about how to validate the work. Missing information here may result in delayed response from the community.
  • If contributing template-only or documentation-only changes which will change sample output, build the project beforehand.
  • Run the shell script ./bin/generate-samples.shto update all Petstore samples related to your fix. This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master. These must match the expectations made by your contribution. You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example ./bin/generate-samples.sh bin/configs/java*. For Windows users, please run the script in Git BASH.
  • File the PR against the correct branch: master, 5.1.x, 6.0.x
  • Copy the technical committee to review the pull request if your PR is targeting a particular programming language.

@jgavris (2017/07) @ehyche (2017/08) @Edubits (2017/09) @jaz-ah (2017/09) @4brunu (2019/11)

@4brunu 4brunu closed this Dec 24, 2020
@4brunu 4brunu reopened this Dec 24, 2020
@wing328 wing328 merged commit 775b64f into OpenAPITools:master Dec 29, 2020
@4brunu 4brunu deleted the feature/swift5-error-response-with-more-info branch December 29, 2020 15:31
@hyunoosung
Copy link

hyunoosung commented Jan 2, 2021

will this solve my problem?
https://stackoverflow.com/questions/65541603/how-do-i-get-data-value-from-combine-alamofire-error-response
I'm having a hard time getting api error responses

@4brunu
Copy link
Contributor Author

4brunu commented Jan 2, 2021

@hyounoo this PR it's not related to your problem.
I answered your question in stackoverflow.

@hyunoosung
Copy link

@hyounoo this PR it's not related to your problem.
I answered your question in stackoverflow.

Thank you!
I am sorry if it was not related but I saw that Response was added to the pr so I thought it would be related.

Also thank you so much for the swift generator pr.
This saves tons of time in our development.

@4brunu
Copy link
Contributor Author

4brunu commented Jan 3, 2021

No problem 😉
When you have some time please give some feedback on the stack overflow answer, if it solved your problem or not.

@hyunoosung
Copy link

No problem 😉
When you have some time please give some feedback on the stack overflow answer, if it solved your problem or not.

Sure thing!

@wing328 wing328 added this to the 5.0.1 milestone Feb 6, 2021
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