Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add Discriminated Unions to OpenAPI <LOW STATUS> #46

Open
stoneliuCS opened this issue Jan 8, 2025 · 0 comments
Open

Add Discriminated Unions to OpenAPI <LOW STATUS> #46

stoneliuCS opened this issue Jan 8, 2025 · 0 comments

Comments

@stoneliuCS
Copy link
Contributor

Discriminated Unions allow for automatic type inference through a common "key". We can have openapi generate discriminated union types such that TypeScript can automatically infer the shape of data through a single key. This makes matching with on the client side much more elegant and clean.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant