Skip to content

openapi3gen Panic when embedded field has more properties than root  #425

@austince

Description

@austince

When using a SchemaCustomizer with an embedded struct field that has more fields than the root object, the generator panics. It seems like the issue is that the field index is accessed from the parent based on the index of the embedded.

I have a test showing this here: austince@f93a9da

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions