Skip to content

Conversation

@Shane32
Copy link
Member

@Shane32 Shane32 commented Aug 26, 2022

Closes #916

  • Changes default response type from application/graphql+json to application/graphql-response+json
  • Changes tests to use content type of application/json for requests

@Shane32 Shane32 self-assigned this Aug 26, 2022
@Shane32 Shane32 changed the title Change default response content type Change default response content type to match draft spec Aug 26, 2022
@github-actions github-actions bot added the test label Aug 26, 2022
@Shane32 Shane32 removed the test label Aug 26, 2022
@Shane32
Copy link
Member Author

Shane32 commented Aug 28, 2022

@sungam3r I'm considering this a critical bug and will be releasing 7.1 with this fix shortly if you have no comments. The draft spec was changed 1 day after GraphQL.NET Server 7.0 was released, and so I feel it is in the best interest of the community to release an update asap before 7.0 is widely circulated.

@Shane32 Shane32 requested a review from sungam3r August 28, 2022 16:51
@codecov-commenter
Copy link

Codecov Report

Merging #918 (b7beed8) into master (70f1d15) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #918   +/-   ##
=======================================
  Coverage   95.17%   95.17%           
=======================================
  Files          42       42           
  Lines        1991     1991           
  Branches      336      336           
=======================================
  Hits         1895     1895           
  Misses         55       55           
  Partials       41       41           
Impacted Files Coverage Δ
src/Transports.AspNetCore/GraphQLHttpMiddleware.cs 95.62% <ø> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@Shane32 Shane32 merged commit 8106643 into master Sep 2, 2022
@Shane32 Shane32 deleted the change_default_response_content_type branch September 2, 2022 13:01
@sungam3r sungam3r added the spec compliance The change is intended to solve the problem of inconsistency with the official GraphQL specification label Sep 5, 2022
@sungam3r
Copy link
Member

sungam3r commented Sep 5, 2022

Reviewed. I just recently could start sorting emails. I still have little free time. I think the situation will change in October.

Kent-Chen-Conning added a commit to Conning/graphql-dotnet-server that referenced this pull request Oct 28, 2022
…4-upgrade-to-7.1

* commit 'af5ac03f9f5505d476850cee23c5aaa145110c94': (352 commits)
  Update response content type for `ExecutionResultActionResult` (graphql-dotnet#923)
  Bump Serilog.Sinks.Console from 4.0.1 to 4.1.0 (graphql-dotnet#924)
  Select return content type based on Accept header (graphql-dotnet#919)
  Allow the configuration of the response content type via options (graphql-dotnet#913)
  Change default response content type to match draft spec (graphql-dotnet#918)
  Add note regarding ASP.NET Core 2.1 support policy (graphql-dotnet#914)
  Bump Microsoft.NET.Test.Sdk from 17.3.0 to 17.3.1 (graphql-dotnet#920)
  Bump Shouldly from 4.0.3 to 4.1.0 (graphql-dotnet#912)
  Bump GraphQL to 7.0.2 (graphql-dotnet#911)
  Add file upload/download documentation to readme (graphql-dotnet#909)
  Fix packing readme and analysis recommendations (graphql-dotnet#897)
  Fix call to UseApolloTracing in Complex sample (graphql-dotnet#903)
  Add docs link
  Update migration document link (graphql-dotnet#895)
  Add federation tracing extension method (graphql-dotnet#894)
  Bump to GraphQL.NET 7.0.0 (graphql-dotnet#893)
  Feature/assembly-strongname (graphql-dotnet#892)
  Add JWT bearer authentication sample (graphql-dotnet#885)
  Bump Microsoft.AspNetCore.TestHost from 6.0.0 to 6.0.8 (graphql-dotnet#889)
  Bump Microsoft.NET.Test.Sdk from 17.2.0 to 17.3.0 (graphql-dotnet#890)
  ...

# Conflicts:
#	src/Transports.AspNetCore/GraphQLExtensions.cs
#	src/Transports.AspNetCore/GraphQLHttpMiddleware.cs
#	src/Transports.AspNetCore/Transports.AspNetCore.csproj
#	src/Transports.Subscriptions.Abstractions/ProtocolMessageListener.cs
#	src/Transports.Subscriptions.Abstractions/Subscription.cs
#	src/Transports.Subscriptions.Abstractions/SubscriptionServer.cs
#	src/Transports.Subscriptions.Abstractions/Transports.Subscriptions.Abstractions.csproj
#	src/Transports.Subscriptions.WebSockets/GraphQlWebSocketsMiddleware.cs
#	src/Transports.Subscriptions.WebSockets/Transports.Subscriptions.WebSockets.csproj
#	src/Transports.Subscriptions.WebSockets/WebSocketConnection.cs
#	src/Transports.Subscriptions.WebSockets/WebSocketReaderPipeline.cs
#	src/Ui.GraphiQL/Ui.GraphiQL.csproj
#	src/Ui.Playground/Ui.Playground.csproj
#	src/Ui.Voyager/Ui.Voyager.csproj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation spec compliance The change is intended to solve the problem of inconsistency with the official GraphQL specification

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Change default response content type to match current draft spec

4 participants