Skip to content

validator support pointer to struct #71

@smthpickboy

Description

@smthpickboy

required tag is not working if its related field is inside a struct which is referenced using pointer in parent struct.

type Parent struct {
    C *Child
}

type Child {
    SomeField `toml:"some_field" required:"true"`
}

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