Feature Request: support Open API's `discriminator` for discriminated union types
Open
- Dominant language
- Go
- Stars
- 6.1k
- Forks
- 583
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 15
Description
Open API supports discriminated union types (like oneOf, but the types narrow depending on the discriminator, which is usually a set of strings or an enum)
This is really helpful for generating type safe polymorphic APIs.
more info: https://apidog.com/blog/openapi-discriminator-guide/
Contributor guide
Assessment
This issue has not been assessed yet.