Skip to content

Commit fc60930

Browse files
akinrosslhercot
authored andcommitted
[ignore] remove make string required for required attributes in single nested attributes
1 parent 716c0ed commit fc60930

File tree

4 files changed

+1
-53
lines changed

4 files changed

+1
-53
lines changed

gen/templates/resource.go.tmpl

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2621,14 +2621,9 @@ var {{.ResourceClassName}}{{.ParentHierarchy}}Type = types.ObjectType{
26212621
stringplanmodifier.UseStateForUnknown(),
26222622
},
26232623
{{- end}}
2624-
{{- if or .ValidValues $.TemplateProperties.HasReadOnlyProperties}}
2624+
{{- if or .ValidValues }}
26252625
Validators: []validator.String{
2626-
{{- if .ValidValues}}
26272626
stringvalidator.OneOf({{- validatorString .ValidValues}}),
2628-
{{- end}}
2629-
{{- if or .IsNaming .IsRequired}}
2630-
MakeStringRequired(),
2631-
{{- end}}
26322627
},
26332628
{{- end}}
26342629
MarkdownDescription: `{{.Comment}}`,

internal/provider/resource_aci_application_epg.go

Lines changed: 0 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/provider/resource_aci_bridge_domain.go

Lines changed: 0 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/provider/resource_aci_endpoint_security_group.go

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)