rspec-openapi
rspec-openapi copied to clipboard
Wrong content-type for payload body
trafficstars
Hello,
I have a problem with my generation and I can't find a way to fix it.
All the request body are using "application/x-www-form-urlencoded" format and the response are using "application/json".
I would like to have both in "application/json" but I can't find the correct parameter to force it. And I don't see any difference on the generation of my payload for the request and the response in the spec.
Is there a way to force the request to also use json ? Do I need to pass a post generation function to replace all headers ?
Thanks for your help !