Allow nested predefined constants

This commit is contained in:
Peter 2024-12-21 22:33:09 +01:00
parent 20a68c5d9b
commit aa2feca4b7

View file

@ -46,7 +46,7 @@ properties:
default: {}
description: Extra constant variables that can be used in templates, centrally defined in this config
additionalProperties:
type: string
"$ref": "#/definitions/stringonlyconst"
templatefiles:
type: array
default: []
@ -76,3 +76,11 @@ properties:
required:
- mainunit
- mainunitfile
definitions:
stringonlyconst:
description: Only string values but it can be defined using an object or nested objects
anyOf:
- type: string
- type: object
additionalProperties:
"$ref": "#/definitions/stringonlyconst"