Skip to content

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

Merged
wing328 merged 2 commits intoOpenAPITools:masterfrom
henryh-force:pr/7500
Sep 27, 2020
Merged

[Apex] better handling of different content-type in the response#7515
wing328 merged 2 commits intoOpenAPITools:masterfrom
henryh-force:pr/7500

Conversation

@henryh-force
Copy link
Copy Markdown
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
Copy Markdown
Member

wing328 commented Sep 27, 2020

@henryh-force thanks for the PR

cc @muenzpraeger

@wing328
Copy link
Copy Markdown
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