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

Deprecate support of the application/graphql+json media type #915

Open
Shane32 opened this issue Aug 26, 2022 · 2 comments
Open

Deprecate support of the application/graphql+json media type #915

Shane32 opened this issue Aug 26, 2022 · 2 comments

Comments

@Shane32
Copy link
Member

Shane32 commented Aug 26, 2022

In graphql/graphql-over-http#161 this was added to the draft spec:

A server MUST support requests from clients with HTTP header Content-Type: application/graphql+json indicating that the body of the request is a JSON document with a GraphQL request.

GraphQL.NET Server v7 supports both the application/json and application/graphql+json media types for requests.

This media type has been removed in graphql/graphql-over-http#175 where we have this:

The following are the officially recognized GraphQL media types to designate using the JSON encoding for GraphQL requests:

Name Description
application/json Standard type for GraphQL JSON requests

Although no change is required, we may wish to note in the source that support was removed for this media type within the current draft spec.

@Shane32 Shane32 changed the title Deprecate support of application/graphql+json requests Deprecate support of the application/graphql+json media type Sep 4, 2022
@sungam3r
Copy link
Member

sungam3r commented Sep 5, 2022

WOW. For me it is unexpected.

@sungam3r
Copy link
Member

sungam3r commented Sep 5, 2022

Rel : graphql/graphql-over-http#215

@Shane32 Shane32 added this to the 8.0 milestone Oct 18, 2023
@Shane32 Shane32 removed this from the 8.0 milestone Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants