3 ms·
Does OpenAPI support union types yet? More importantly, if it does, does Swagger support the OpenAPI version that does?
by EdwardDiego 4y ago
Does OpenAPI support union types yet?
More importantly, if it does, does Swagger support the OpenAPI version that does?
- andreareina 4y agoWe have union types defined in fastapi/pydantic and they do show up in the api explorer. Tagged unions don't work but I think that's more to do with us/python than openapi.
- EdwardDiego 4y agoAh, that's nice. I think a year or so ago I was dealing with api docs that'd been run through Swagger and it just stopped emitting fields when it hit union types.