From 122a5fa16bb6f7b4655b315a1032a5921393f1b1 Mon Sep 17 00:00:00 2001 From: Evgeny Abramovich Date: Fri, 29 Nov 2024 22:19:20 -0400 Subject: [PATCH] Fixed seed validation --- internal/config/validators/fakedata_node.go | 1 + internal/config/validators/response.go | 1 + 2 files changed, 2 insertions(+) diff --git a/internal/config/validators/fakedata_node.go b/internal/config/validators/fakedata_node.go index 262f268c..bb5aa188 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 56ddd4ec..81b2abdc 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, })) } }