mirror of https://github.com/databricks/cli.git
This commit is contained in:
parent
aac6687900
commit
4141f4ea34
|
@ -26,7 +26,7 @@ func addInterpolationPatterns(typ reflect.Type, s jsonschema.Schema) jsonschema.
|
||||||
// arrays and objects can have complex variable values specified.
|
// arrays and objects can have complex variable values specified.
|
||||||
return jsonschema.Schema{
|
return jsonschema.Schema{
|
||||||
AnyOf: []jsonschema.Schema{s, {
|
AnyOf: []jsonschema.Schema{s, {
|
||||||
Type: jsonschema.StringType,
|
Type: jsonschema.StringType,
|
||||||
Pattern: interpolationPattern("var"),
|
Pattern: interpolationPattern("var"),
|
||||||
}},
|
}},
|
||||||
}
|
}
|
||||||
|
@ -46,8 +46,6 @@ func addInterpolationPatterns(typ reflect.Type, s jsonschema.Schema) jsonschema.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Add enum overrides for DABs enum values. Maybe use reflection?
|
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
if len(os.Args) != 2 {
|
if len(os.Args) != 2 {
|
||||||
fmt.Println("Usage: go run main.go <output-file>")
|
fmt.Println("Usage: go run main.go <output-file>")
|
||||||
|
|
Loading…
Reference in New Issue