Skip to content

Definitions for enums in a vector are not generated #3

@zedkipp

Description

@zedkipp

Hi @glaceef, Thanks for creating this helpful crate.

I am having an issue where enums with the #[rschema(defs)] attribute inside a Vector are not added to the generated schema definitions. The generated array schema refers to the definition, but the definition itself is not generated.

I've modified an existing test to demonstrate this issue here: zedkipp@9471a5d

If the enum is used anywhere else in the schema structure(s), the enum definition seems to be correctly generated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions