diff --git a/internal/config/validators/fakedata_node.go b/internal/config/validators/fakedata_node.go index 262f268..bb5aa18 100644 --- a/internal/config/validators/fakedata_node.go +++ b/internal/config/validators/fakedata_node.go @@ -68,6 +68,7 @@ func (c *FakedataNodeValidator) validateAsObject(errors *validate.Errors) { errors.Append(validate.Validate(&FakedataNodeValidator{ Field: joinPath(c.Field, key), Value: &node, + Root: false, })) } } diff --git a/internal/config/validators/response.go b/internal/config/validators/response.go index 56ddd4e..81b2abd 100644 --- a/internal/config/validators/response.go +++ b/internal/config/validators/response.go @@ -44,6 +44,7 @@ func (r *ResponseValidator) IsValid(errors *validate.Errors) { errors.Append(validate.Validate(&FakedataNodeValidator{ Field: joinPath(r.Field, "fake"), Value: r.Value.Fake, + Root: true, })) } }