Closed davedoesdev closed 9 months ago
Could oneOf be represented as union instead of a refined any? It would make the output read better and better suited to further processing.
oneOf
union
any
No, oneOf is exclusive, union is inclusive. Use anyOf in the JSON schema instead, using oneOf is almost universally a bad idea.
anyOf
Thanks, that works for my use case :+1:
Could
oneOf
be represented asunion
instead of a refinedany
? It would make the output read better and better suited to further processing.