mirror of https://github.com/databricks/cli.git
Renamed method to HasRequiredNonBodyField (#553)
## Changes Renamed method to HasRequiredNonBodyField in line with https://github.com/databricks/databricks-sdk-go/pull/536
This commit is contained in:
parent
533234f148
commit
8eccc3442f
|
@ -44,7 +44,7 @@ var Cmd = &cobra.Command{
|
||||||
{{end}}
|
{{end}}
|
||||||
// start {{.KebabName}} command
|
// start {{.KebabName}} command
|
||||||
|
|
||||||
{{- $useJsonForAllFields := or .IsJsonOnly (and .Request (or (not .Request.IsAllRequiredFieldsPrimitive) .Request.IsAllRequiredFieldsJsonUnserialisable)) -}}
|
{{- $useJsonForAllFields := or .IsJsonOnly (and .Request (or (not .Request.IsAllRequiredFieldsPrimitive) .Request.HasRequiredNonBodyField)) -}}
|
||||||
{{- $needJsonFlag := or $useJsonForAllFields (and .Request (not .Request.IsOnlyPrimitiveFields)) -}}
|
{{- $needJsonFlag := or $useJsonForAllFields (and .Request (not .Request.IsOnlyPrimitiveFields)) -}}
|
||||||
{{- if .Request}}
|
{{- if .Request}}
|
||||||
var {{.CamelName}}Req {{.Service.Package.Name}}.{{.Request.PascalName}}
|
var {{.CamelName}}Req {{.Service.Package.Name}}.{{.Request.PascalName}}
|
||||||
|
|
Loading…
Reference in New Issue