mirror of https://github.com/databricks/cli.git
fix: Allow nodes with only description
This commit is contained in:
parent
c546604cc4
commit
90cafad8c8
|
@ -81,7 +81,7 @@ func getNodes(s jsonschema.Schema, refs map[string]jsonschema.Schema, customFiel
|
|||
node.ArrayItemAttributes = getAttributes(arrayItemType.Properties, refs, customFields, k)
|
||||
}
|
||||
|
||||
isEmpty := len(node.Attributes) == 0 && len(node.ObjectKeyAttributes) == 0 && len(node.ArrayItemAttributes) == 0
|
||||
isEmpty := node.Description == "" && len(node.Attributes) == 0 && len(node.ObjectKeyAttributes) == 0 && len(node.ArrayItemAttributes) == 0
|
||||
shouldAddNode := !isEmpty || node.TopLevel
|
||||
if shouldAddNode {
|
||||
nodes = append(nodes, node)
|
||||
|
|
|
@ -480,7 +480,7 @@ github.com/databricks/cli/bundle/config/variable.Variable:
|
|||
"description": |-
|
||||
The name of the alert, cluster_policy, cluster, dashboard, instance_pool, job, metastore, pipeline, query, service_principal, or warehouse object for which to retrieve an ID.
|
||||
"markdown_description": |-
|
||||
The name of the `alert`, `cluster_policy`, `cluster`, `dashboard`, `instance_pool`, `job`, `metastore`, `pipeline`, `query`, `service_principal`, or `warehouse` object for which to retrieve an ID."
|
||||
The name of the `alert`, `cluster_policy`, `cluster`, `dashboard`, `instance_pool`, `job`, `metastore`, `pipeline`, `query`, `service_principal`, or `warehouse` object for which to retrieve an ID.
|
||||
"type":
|
||||
"description": |-
|
||||
The type of the variable.
|
||||
|
|
Loading…
Reference in New Issue