multiconfig icon indicating copy to clipboard operation
multiconfig copied to clipboard

validator support pointer to struct

Open smthpickboy opened this issue 7 years ago • 0 comments

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"`
}

smthpickboy avatar May 21 '18 08:05 smthpickboy