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

Problem with substructs and slice of substruct #34

Open
JoydS opened this issue Jun 27, 2022 · 2 comments
Open

Problem with substructs and slice of substruct #34

JoydS opened this issue Jun 27, 2022 · 2 comments

Comments

@JoydS
Copy link

JoydS commented Jun 27, 2022

Hello guys,

Im trying to implement your code but I have some issues with it.

In the case I have substruct or slice of substruct, the lib is not working.

type Request struct {
    SeveralSubRequests []*struct {
	Foo  string `json:"foo" conform:"trim"`
	Bar  string `json:"bar" conform:"trim"`
    } `json:"several_sub_requests"`
}
type Request struct {
    SubRequest *struct {
        Foo  string `json:"foo" conform:"trim"`
        Bar  string `json:"bar" conform:"trim"`
    } `json:"sub_request"`
}
@JoydS
Copy link
Author

JoydS commented Sep 15, 2022

Little up on the subject ! Thanks

@leebenson
Copy link
Owner

Thank you and sorry for the delay. I'm happy to take PRs to fix this.

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

No branches or pull requests

2 participants