Skip to content

Generating models without any paths defined #1443

Open
@atombender

Description

@atombender

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions