Skip to content

how to move Enum type to components in generated openapi schema by typia.json.application #1531

New issue

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

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

Already on GitHub? Sign in to your account

Open
salisbury-espinosa opened this issue Mar 10, 2025 · 0 comments

Comments

@salisbury-espinosa
Copy link

salisbury-espinosa commented Mar 10, 2025

Question

I have an Enum in my interface, and it is explicitly inline into the generated schema via JSON Schemas generatortypia.json.application.
Is it possible to somehow tell the transpiler ( typescript type => json schema) so that it moves the Enum to components schemas ("$ref": "#/components/schemas/SomeEnum"), because the Enum can be very large (for example, a country code) and appear in many places in the schema

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

No branches or pull requests

1 participant