Replies: 1 comment
-
Hi! I'm trying to do something similar, did you find a solution? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
For my use case, I need to validate that there are no additional fields other than those laid out in the schema. In this case, my data is of type
map[string]interface{}
and I'm using schemas defined in .json files that get read into amap[string]interface{}
before calling theValidateMap
method, eg:So I would want this data to pass the validation:
And this rejected:
Is this possible using the validator package? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions