Skip to content

Commit f3db44b

Browse files
authored
Merge pull request #631 from DannyBen/update/settings-json-schema
Update settings json schema
2 parents d95c5de + da384e0 commit f3db44b

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed

schemas/settings.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,40 @@
325325
}
326326
},
327327
"additionalProperties": false
328+
},
329+
"function_names": {
330+
"title": "function_names",
331+
"description": "Choose different names for some of the internal functions.\nhttps://bashly.dev/usage/settings/#function_names",
332+
"type": "object",
333+
"properties": {
334+
"run": {
335+
"title": "run",
336+
"description": "Name for the run() function\nhttps://bashly.dev/usage/settings/#function_names",
337+
"oneOf": [
338+
{
339+
"type": "string",
340+
"minLength": 1
341+
},
342+
{
343+
"type": "null"
344+
}
345+
]
346+
},
347+
"initialize": {
348+
"title": "initialize",
349+
"description": "Name for the initialize() function\nhttps://bashly.dev/usage/settings/#function_names",
350+
"oneOf": [
351+
{
352+
"type": "string",
353+
"minLength": 1
354+
},
355+
{
356+
"type": "null"
357+
}
358+
]
359+
}
360+
},
361+
"additionalProperties": false
328362
}
329363
},
330364
"additionalProperties": false

support/schema/settings.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,4 +265,25 @@ properties:
265265
https://bashly.dev/usage/settings/#var_aliases
266266
oneOf: *optional_string
267267
additionalProperties: false
268+
function_names:
269+
title: function_names
270+
description: |-
271+
Choose different names for some of the internal functions.
272+
https://bashly.dev/usage/settings/#function_names
273+
type: object
274+
properties:
275+
run:
276+
title: run
277+
description: |-
278+
Name for the run() function
279+
https://bashly.dev/usage/settings/#function_names
280+
oneOf: *optional_string
281+
initialize:
282+
title: initialize
283+
description: |-
284+
Name for the initialize() function
285+
https://bashly.dev/usage/settings/#function_names
286+
oneOf: *optional_string
287+
additionalProperties: false
288+
268289
additionalProperties: false

0 commit comments

Comments
 (0)