You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think to support this you'd have to use a map instead of a struct, and even then I'm not sure it's possible to fully reflect a JSON schema as a fully typed Go struct or map.
Personally, I'm going to take the approach of validating any complex JSON against a JSON Schema, and then reading it into a simple map[string]interface{}
It seems that whenever my JSONSchema makes use of the
patternProperties
constructor, the resulting struct is empty.Output:
The text was updated successfully, but these errors were encountered: