From ad5005027f6b33bb059df0fcf1658ff74e35c575 Mon Sep 17 00:00:00 2001 From: tomaz jejcic Date: Sat, 21 Oct 2023 18:00:41 +0200 Subject: [PATCH] feat: add query matchers --- validations/query.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/validations/query.go b/validations/query.go index ad8712e..9111bd7 100644 --- a/validations/query.go +++ b/validations/query.go @@ -41,6 +41,13 @@ func ValidateQuery(query *catvo.Query, attributes catvo.Attributes) []constants. isValueExpired(e.Matcher.StringEquals.Value, def) case e.Matcher.StringNotEquals != nil: isValueExpired(e.Matcher.StringNotEquals.Value, def) + case e.Matcher.IntInRange != nil: + case e.Matcher.IntFrom != nil: + case e.Matcher.IntTo != nil: + case e.Matcher.IntEquals != nil: + case e.Matcher.IntNotEquals != nil: + case e.Matcher.BoolEquals != nil: + case e.Matcher.Bitmap != nil: default: errors = append(errors, constants.MissingQueryCondition) }