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
Add validation for arrays of objects, considering them as valid when
they are inside nested or group.
When group is used, a filterable error is given, mentioning that nested
should be used instead on this case.
returnfmt.Errorf("the IP %q is not one of the allowed test IPs (see: https://github.com/elastic/elastic-package/blob/main/internal/fields/_static/allowed_geo_ips.txt)", valStr)
784
787
}
785
788
// Groups should only contain nested fields, not single values.
786
-
case"group":
787
-
switchval.(type) {
789
+
case"group", "nested":
790
+
switchval:=val.(type) {
788
791
casemap[string]interface{}:
789
-
// TODO: This is probably an element from an array of objects,
792
+
// This is probably an element from an array of objects,
790
793
// even if not recommended, it should be validated.
0 commit comments