From 418a9cd491e88aa2098b812b262d096e98f2b210 Mon Sep 17 00:00:00 2001 From: Emiel Wit Date: Tue, 14 Nov 2023 15:59:44 +0100 Subject: [PATCH] Add default and placeholder values for MultilineText and Text option types --- schemas/actions/function/option/types/multiline-text.json | 8 ++++++++ schemas/actions/function/option/types/text.json | 4 ++++ schemas/actions/function/paths.json | 5 ++++- 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/schemas/actions/function/option/types/multiline-text.json b/schemas/actions/function/option/types/multiline-text.json index 4910469..7c9d257 100644 --- a/schemas/actions/function/option/types/multiline-text.json +++ b/schemas/actions/function/option/types/multiline-text.json @@ -9,6 +9,14 @@ "type": { "const": "MultilineText" }, + "default": { + "description": "The default value of the option", + "type": "string" + }, + "placeholder": { + "description": "The placeholder value of the option", + "type": "string" + }, "validations": { "description": "The requirements for the given option.", "type": "object", diff --git a/schemas/actions/function/option/types/text.json b/schemas/actions/function/option/types/text.json index f3c2733..d662bb7 100644 --- a/schemas/actions/function/option/types/text.json +++ b/schemas/actions/function/option/types/text.json @@ -13,6 +13,10 @@ "description": "The default value of the option", "type": "string" }, + "placeholder": { + "description": "The placeholder value of the option", + "type": "string" + }, "validations": { "description": "The requirements for the given option.", "type": "object", diff --git a/schemas/actions/function/paths.json b/schemas/actions/function/paths.json index 4b30ccc..79ed175 100644 --- a/schemas/actions/function/paths.json +++ b/schemas/actions/function/paths.json @@ -20,7 +20,7 @@ "meta": { "properties": { "type": { - "enum": ["Value", "Filter"] + "enum": ["Value", "Filter", "MultilineText"] } }, "oneOf": [ @@ -29,6 +29,9 @@ }, { "$ref": "/bettyblocks/json-schema/acceptance/schemas/actions/function/option/types/filter.json" + }, + { + "$ref": "/bettyblocks/json-schema/acceptance/schemas/actions/function/option/types/multiline-text.json" } ], "required": ["type"]