Skip to content

Commit

Permalink
don't treat application/graphql as a JSON content type pact-foundatio…
Browse files Browse the repository at this point in the history
  • Loading branch information
tomz authored and tomz committed Jun 9, 2022
1 parent 0e41131 commit 5e58b45
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
<mime-type type="application/x-www-form-urlencoded">
<sub-class-of type="text/plain"/>
</mime-type>
<mime-type type="application/graphql">
<sub-class-of type="application/json"/>
</mime-type>
<mime-type type="application/protobuf">
<sub-class-of type="application/octet-stream"/>
</mime-type>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class ContentTypeSpec extends Specification {
'application/vnd.schemaregistry.v1+json' || false
'application/x-thrift' || true
'application/x-other' || false
'application/graphql' || true
'application/graphql' || false

contentType = new ContentType(value)
}
Expand Down

0 comments on commit 5e58b45

Please sign in to comment.