rspec-openapi icon indicating copy to clipboard operation
rspec-openapi copied to clipboard

Wrong content-type for payload body

Open gh-axel-czarniak opened this issue 10 months ago • 0 comments
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 !

gh-axel-czarniak avatar Dec 27 '24 11:12 gh-axel-czarniak