generated ec.directives.Constraint is hard for validate format. #1966
Unanswered
boojongmin-gm
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What happened?
generated.go
'sfunc (ec *executionContext) unmarshalInput*
'sec.directives.Constraint(ctx, obj, directive0, format)
'sobj
variable is map. like below..What did you expect?
My DirectiveRoot struct's Constraint func's last parameter is format string.
I think. map can't validate.. need to username variable like picture.
or struct
I used go-playground/validator) for validating
Minimal graphql.schema and models to reproduce
versions
gqlgen version
?v0.14.0-dev
go version
?go version go1.17.6 darwin/arm64
go modules
thank you
Beta Was this translation helpful? Give feedback.
All reactions