Skip to content

Commit 149ce5f

Browse files
committed
fix settings schema
1 parent cefdc59 commit 149ce5f

File tree

2 files changed

+23
-12
lines changed

2 files changed

+23
-12
lines changed

schemas/settings.json

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -216,13 +216,21 @@
216216
"formatter": {
217217
"title": "formatter",
218218
"description": "Choose how to post-process the generated script\nhttps://bashly.dev/usage/settings/#formatter",
219-
"type": "string",
220-
"enum": [
221-
"internal",
222-
"none",
223-
"shfmt"
219+
"anyOf": [
220+
{
221+
"type": "string",
222+
"enum": [
223+
":internal",
224+
":none",
225+
":shfmt"
226+
]
227+
},
228+
{
229+
"type": "string",
230+
"minLength": 1
231+
}
224232
],
225-
"default": "internal"
233+
"default": ":internal"
226234
},
227235
"partials_extension": {
228236
"title": "partials extension",

support/schema/settings.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -186,12 +186,15 @@ properties:
186186
description: |-
187187
Choose how to post-process the generated script
188188
https://bashly.dev/usage/settings/#formatter
189-
type: string
190-
enum:
191-
- internal
192-
- none
193-
- shfmt
194-
default: internal
189+
anyOf:
190+
- type: string
191+
enum:
192+
- :internal
193+
- :none
194+
- :shfmt
195+
- type: string
196+
minLength: 1
197+
default: :internal
195198
partials_extension:
196199
title: partials extension
197200
description: |-

0 commit comments

Comments
 (0)