Specifying multiple content-types in itty-router-openapi responses
I'm looking to return response content-type conditional on request accept header. OpenAPI spec has an example https://swagger.io/docs/specification/describing-responses/
but I can't find a way to accomplish that with itty-router-openapi response format. I tried something like
but it seems that the object with the status code key must satisfy
Is there a way to specify multiple content types there?
0 Replies