Hello, I am doing Bidirectional Contract Test with...
# pactflow
m
Hello, I am doing Bidirectional Contract Test with GraphQL API. After publishing both consumer and provider contract, I am getting the following errors
Copy code
Response.Content-Type.Incompatible
Response Content-Type header is incompatible with the mime-types the spec defines to produce
[root].interactions[0].response.headers.Content-Type = "application/json"

Request.Content-Type.Unknown
Request content-type header is defined but the spec does not specify any mime-types to consume
[root].interactions[0].request.headers.Content-Type = "application/json"
The headers are same in both contracts. Any help here please
m
It says the headers you have defined in the pact file don't exist in the OAS
Can you please share the OAS and Pact that's failing,
m
Hi Matt, Thanks for reply. I see it's the issue of postman and postman2openapi npm package. In postman, if we are doing Graphql and provide the query and variable seperately and try to transform into OAS file, the request body and response headers are missing. It needs to select as none body type and provide both query and variables in a single json and mime type as application/json, the conversion to OAS is properly working
👍 1