Skip to content

Commit

Permalink
fix(get-entities): error when property value was not set for jsonata
Browse files Browse the repository at this point in the history
  • Loading branch information
zachowj committed Aug 15, 2019
1 parent 4772772 commit 5125821
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion nodes/get-entities/get-entities.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,11 @@ module.exports = function(RED) {
schema: Joi.array()
.items(
Joi.object({
property: Joi.string(),
property: Joi.when('logic', {
is: 'jsonata',
then: Joi.any(),
otherwise: Joi.string()
}),
logic: Joi.string().valid(
'is',
'is_not',
Expand Down

0 comments on commit 5125821

Please sign in to comment.