Open lifenautjoe opened 4 months ago
@lifenautjoe I was just browsing this repo for the first time and stumbled across your question.
Have you tested this? do you know that anyOf
, oneOf
or allOf
do not work for a fact?
It's mentioned briefly here in the readme talking about zod
schemas;
https://github.com/cloudflare/itty-router-openapi/blob/89255c154a0421f7efb68b7d83d97b1964b8bc6a/docs/pages/types.md?plain=1#L221-L225
Is there a way to use the oneOf attribute on the response specification?
Like this: