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

[Apex] better handling of different content-type in the response #7515

Merged
merged 2 commits into from
Sep 27, 2020

Conversation

henryh-force
Copy link
Contributor

@henryh-force henryh-force commented Sep 26, 2020

openapi-generator/modules/openapi-generator/src/main/resources/apex/OAS.cls

If you send a response that contains anything in addition to "application/json" nothing is returned.

Set the toReturnValue to validate for more than just application/json e.g. UTF-8 within the Content Type.

To fix #7500

@wing328
Copy link
Member

wing328 commented Sep 27, 2020

@henryh-force thanks for the PR

cc @muenzpraeger

@wing328
Copy link
Member

wing328 commented Sep 27, 2020

Pushed 085b230 to fix the CI failure. Let's see how that goes.

@wing328 wing328 changed the title PR7500 [Apex] better handling of different content-type in the response Sep 27, 2020
@wing328 wing328 added this to the 5.0.0 milestone Sep 27, 2020
@wing328 wing328 merged commit ec815ca into OpenAPITools:master Sep 27, 2020
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.

[BUG APEX] Code Generation in OAS.cls
3 participants