feat: add query matchers

This commit is contained in:
tomaz jejcic 2023-10-21 18:00:41 +02:00
parent 98a1d35f47
commit ad5005027f

View File

@ -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)
}