From eee6a2810d9c45a360841a30f3fb92b534f5611d Mon Sep 17 00:00:00 2001 From: Todd Baert Date: Tue, 16 Jan 2024 23:09:15 -0500 Subject: [PATCH] fix: "if" json schema description (#126) see title Signed-off-by: Todd Baert --- json/targeting.json | 2 +- json/targeting.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/json/targeting.json b/json/targeting.json index 40e4858..345e5e0 100644 --- a/json/targeting.json +++ b/json/targeting.json @@ -147,7 +147,7 @@ "properties": { "if": { "title": "If Operator", - "description": "The if statement takes 3 arguments: a condition (if), what to do if its true (then), and what to do if its false (else, optional). Note that the form accepting more than 3 arguments (if/else) is not supported in flagd; use nesting instead.", + "description": "The if statement takes 2-3 arguments: a condition (if), what to do if its true (then), and what to do if its false (else, optional). Note that the form accepting more than 3 arguments (if/else) is not supported in flagd; use nesting instead.", "$ref": "#/$defs/binaryOrTernaryOp" }, "substr": { diff --git a/json/targeting.yaml b/json/targeting.yaml index 5a38bc6..94ca767 100644 --- a/json/targeting.yaml +++ b/json/targeting.yaml @@ -109,7 +109,7 @@ type: object properties: if: title: If Operator - description: 'The if statement takes 3 arguments: a condition (if), what to + description: 'The if statement takes 2-3 arguments: a condition (if), what to do if its true (then), and what to do if its false (else, optional). Note that the form accepting more than 3 arguments (if/else) is not supported in flagd; use nesting instead.'