mirror of
https://github.com/foomo/contentfulvalidation.git
synced 2025-10-16 12:25:37 +00:00
feat: add query matchers
This commit is contained in:
parent
98a1d35f47
commit
ad5005027f
@ -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)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user