Skip to content

Commit f7e800e

Browse files
feat: support array in default
1 parent b437a63 commit f7e800e

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

schemas/bashly.json

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,18 @@
4141
"default": {
4242
"title": "default",
4343
"description": "A default value of the current positional argument\nhttps://bashly.dannyb.co/configuration/argument/#default",
44-
"type": "string",
44+
"oneOf": [
45+
{
46+
"type": "string"
47+
},
48+
{
49+
"type": "array",
50+
"minItems": 1,
51+
"items": {
52+
"type": "string"
53+
}
54+
}
55+
],
4556
"examples": [
4657
"*.jpg"
4758
]
@@ -159,7 +170,18 @@
159170
"default": {
160171
"title": "default",
161172
"description": "A default value of the current flag\nhttps://bashly.dannyb.co/configuration/flag/#default",
162-
"type": "string",
173+
"oneOf": [
174+
{
175+
"type": "string"
176+
},
177+
{
178+
"type": "array",
179+
"minItems": 1,
180+
"items": {
181+
"type": "string"
182+
}
183+
}
184+
],
163185
"examples": [
164186
"*.jpg"
165187
]

0 commit comments

Comments
 (0)