Skip to content

Generating models without any paths defined #1443

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
atombender opened this issue Apr 12, 2025 · 0 comments
Open

Generating models without any paths defined #1443

atombender opened this issue Apr 12, 2025 · 0 comments
Labels
enhancement New feature or request openapi-features OpenAPI features support issues

Comments

@atombender
Copy link
Contributor

I have a desire to generate model structs only, i.e. use this as a basic JSON Schema generator. As far as I can see, Ogen will not generate types for type definitions that aren't used in the paths. So if you have a schema with no paths defined, no model types will be generated.

While I can see that this isn't the primary use case with Ogen, supporting this use case would mean not having to reach out to another tool to accomplish it.

@atombender atombender added enhancement New feature or request openapi-features OpenAPI features support issues labels Apr 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request openapi-features OpenAPI features support issues
Projects
None yet
Development

No branches or pull requests

1 participant