Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds code-gen support for OpenAPI discriminators using Tagged Unions
Although the OpenAPI spec allows for more complicated scenarios, I've restricted this to discriminator unions with an explicit mapping using only schema types that are not referenced elsewhere. This allows us to generate nearly the exact same code as we would write by hand for handling our own tagged union schemas.
- Loading branch information