Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

validator support pointer to struct #71

Open
smthpickboy opened this issue May 21, 2018 · 0 comments · May be fixed by #72
Open

validator support pointer to struct #71

smthpickboy opened this issue May 21, 2018 · 0 comments · May be fixed by #72

Comments

@smthpickboy
Copy link

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 pushed a commit to smthpickboy/oneconfig that referenced this issue May 21, 2018
@smthpickboy smthpickboy linked a pull request May 21, 2018 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant