From 7e4536ebe7e67eec5e9d38a6e0f769b74ccc6244 Mon Sep 17 00:00:00 2001 From: quobix Date: Wed, 22 May 2024 17:11:15 -0400 Subject: [PATCH] fixed xor schema --- functions/core/xor.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/functions/core/xor.go b/functions/core/xor.go index 7622124b..83da4725 100644 --- a/functions/core/xor.go +++ b/functions/core/xor.go @@ -23,11 +23,12 @@ func (x Xor) GetSchema() model.RuleFunctionSchema { Required: []string{"properties"}, Properties: []model.RuleFunctionProperty{ { - Name: "properties", - Description: "'xor' requires two values", + Name: "properties", + Description: "'xor' requires two values, examples of valid options are 'a, b'" + + " or '1, 2' etc (do not include quotes)", }, }, - MinProperties: 2, + MinProperties: 1, MaxProperties: 2, ErrorMessage: "'xor' function has invalid options supplied. Example valid options are 'properties' = 'a, b'" + " or 'properties' = '1, 2'",