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

[csharp-netcore] Propagate raw content to the ApiException error content. #4381

Merged
merged 2 commits into from
Nov 12, 2019

Conversation

yzhoholiev
Copy link
Contributor

This PR resolves an issue with the ApiException error content described in #3473 .

The issue is linked to migration to the generic IRestResponse<T>. The deserialization happens before the exception is actually checked by ExceptionFactory.

Possible fix is to propagate both raw response content from IRestResponse.Content as well as IRestResponse<T>.Data to the ApiResponse.

But I think it makes sense to roll back to the older implementation, where deserialization happed if an exception hadn't been constructed.

Technical committee: @mandrean (2017/08), @jimschubert (2017/09) ❤️ @frankyjuang (2019/09)

@yzhoholiev
Copy link
Contributor Author

@jimschubert it looks like continuous-integration/drone/pr was broken because of some access issue. Could you help with a restart of this check?

@rizwansaeed
Copy link
Contributor

Hi all, thanks for fixing up this issue, do you know when it might get merged and released?

@jimschubert jimschubert added this to the 4.2.1 milestone Nov 12, 2019
@jimschubert jimschubert merged commit 4494bf1 into OpenAPITools:master Nov 12, 2019
jimschubert added a commit that referenced this pull request Nov 13, 2019
* master:
  [csharp-netcore] Propagate raw content to the ApiException error content. (#4381)
  Remove path relative to my home dir. (#4470)
  Avoid generating uncompilable response body in Spring's API template (#2903)
  cpp-qt5-client: remove host since it is not well handled (#4429)
  [Java] Refactor webClient generator to use URI templates to capture correct metrics (#4314)
  [Java]: Client resttemplate and webclient: array parameters of type integer in path badly generated (#4379)
  Dart generate keywords (#4449)
  [core] Fix system properties being immutable (#4447)
  [Kotlin][Client] minor improvements (#4419)
  [typescript-rxjs]: Add support for nullable (#4438)
  [asciidoc] fix names of parameters (#4440)
@wing328
Copy link
Member

wing328 commented Nov 15, 2019

@yzhoholiev thanks for the PR, which has been included in the v4.2.1 release: https://twitter.com/oas_generator/status/1195339336922759168

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.

4 participants