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

allow vendor content types

Open bluebrown opened this issue 3 years ago • 2 comments

Hi, I am using vendor content type like application/vnd.org.v1+json. Because of this, response validation failed with unsupported content type.

Is there a way to tell it to decode it as json?

bluebrown avatar Nov 18 '22 09:11 bluebrown

ok, I found out that I can use openapi3filter.RegisterBodyDecoder. Its just a bit inconvinient that the default included decoders are private, so I had to copy the json one to provide it as argument.

Maybe the default decoders could be public?

bluebrown avatar Nov 18 '22 10:11 bluebrown

@bluebrown looks like this can be closed due to #896

nickajacks1 avatar Feb 06 '24 16:02 nickajacks1