Skip to content

Commit

Permalink
fixed xor schema
Browse files Browse the repository at this point in the history
  • Loading branch information
daveshanley committed May 25, 2024
1 parent 7cf9d0f commit 7e4536e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions functions/core/xor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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'",
Expand Down

0 comments on commit 7e4536e

Please sign in to comment.