Skip to content

Commit

Permalink
Fixed seed validation
Browse files Browse the repository at this point in the history
  • Loading branch information
evg4b committed Nov 30, 2024
1 parent 9dce9c7 commit 122a5fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/config/validators/fakedata_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}))
}
}
1 change: 1 addition & 0 deletions internal/config/validators/response.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}))
}
}
Expand Down

0 comments on commit 122a5fa

Please sign in to comment.