This commit is contained in:
Shreyas Goenka 2024-09-04 16:18:34 +02:00
parent 3b06a94cfc
commit 4dbc090cf3
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
2 changed files with 51 additions and 1 deletions

View File

@ -8,6 +8,8 @@ import (
type Mode string type Mode string
type TargetVariable variable.Variable
// Target defines overrides for a single target. // Target defines overrides for a single target.
// This structure is recursively merged into the root configuration. // This structure is recursively merged into the root configuration.
type Target struct { type Target struct {

View File

@ -1032,6 +1032,40 @@
} }
] ]
}, },
"config.TargetVariable": {
"anyOf": [
{
"type": "object",
"properties": {
"default": {
"$ref": "#/$defs/interface"
},
"description": {
"$ref": "#/$defs/string"
},
"lookup": {
"$ref": "#/$defs/github.com/databricks/cli/bundle/config/variable.Lookup"
},
"type": {
"$ref": "#/$defs/github.com/databricks/cli/bundle/config/variable.VariableType"
}
},
"additionalProperties": false
},
{
"type": "string"
},
{
"type": "boolean"
},
{
"type": "integer"
},
{
"type": "number"
}
]
},
"config.Workspace": { "config.Workspace": {
"anyOf": [ "anyOf": [
{ {
@ -5086,6 +5120,20 @@
"pattern": "\\$\\{(var(\\.[a-zA-Z]+([-_]?[a-zA-Z0-9]+)*(\\[[0-9]+\\])*)+)\\}" "pattern": "\\$\\{(var(\\.[a-zA-Z]+([-_]?[a-zA-Z0-9]+)*(\\[[0-9]+\\])*)+)\\}"
} }
] ]
},
"config.TargetVariable": {
"anyOf": [
{
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/github.com/databricks/cli/bundle/config.TargetVariable"
}
},
{
"type": "string",
"pattern": "\\$\\{(var(\\.[a-zA-Z]+([-_]?[a-zA-Z0-9]+)*(\\[[0-9]+\\])*)*(\\[[0-9]+\\])*)\\}"
}
]
} }
} }
} }
@ -5558,4 +5606,4 @@
} }
}, },
"additionalProperties": false "additionalProperties": false
} }