Skip to content

Commit

Permalink
Merge pull request #165 from bettyblocks/feat/multiline-path-option
Browse files Browse the repository at this point in the history
Add default and placeholder values for
  • Loading branch information
emielwit authored Nov 22, 2023
2 parents 6ca581e + 418a9cd commit 78694f9
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
8 changes: 8 additions & 0 deletions schemas/actions/function/option/types/multiline-text.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 4 additions & 0 deletions schemas/actions/function/option/types/text.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 4 additions & 1 deletion schemas/actions/function/paths.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"meta": {
"properties": {
"type": {
"enum": ["Value", "Filter"]
"enum": ["Value", "Filter", "MultilineText"]
}
},
"oneOf": [
Expand All @@ -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"]
Expand Down

0 comments on commit 78694f9

Please sign in to comment.