Skip to content

Resolve Issue #5724: parse all content types ending with +json as json in rest data source#5737

Merged
glasser merged 2 commits into
apollographql:mainfrom
nholik:augment-json-parsing-rest-data-source
Sep 29, 2021
Merged

Resolve Issue #5724: parse all content types ending with +json as json in rest data source#5737
glasser merged 2 commits into
apollographql:mainfrom
nholik:augment-json-parsing-rest-data-source

Conversation

@nholik

@nholik nholik commented Sep 22, 2021

Copy link
Copy Markdown
Contributor

This commit addresses issue 5724. It is a simple change to treat all content types ending with +json similar to how all content types beginning with application/json are automatically parsed as JSON. The helps cover some other common types of JSON types beyond the original hard coded exception.

@apollo-cla

Copy link
Copy Markdown

@nholik: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Apollo Contributor License Agreement here: https://contribute.apollographql.com/

@glasser glasser self-assigned this Sep 28, 2021
@glasser

glasser commented Sep 28, 2021

Copy link
Copy Markdown
Member

This looks good. It needs a CHANGELOG.md entry before it can be merged, which I can get to soon unless you do it first. (It's a little weird how we still have a single CHANGELOG.md file even though packages such as apollo-datasource-rest have unrelated versioning; I'd like to eventually move apollo-datasource-rest and apollo-datasource to its own repo as part of improving this.)

@glasser glasser enabled auto-merge (squash) September 29, 2021 00:23
nholik and others added 2 commits September 28, 2021 17:38
@glasser glasser merged commit e199acc into apollographql:main Sep 29, 2021
@nholik nholik deleted the augment-json-parsing-rest-data-source branch September 29, 2021 00:50
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Apr 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants