Skip to content

Commit

Permalink
[ignore] remove make string required for required attributes in singl…
Browse files Browse the repository at this point in the history
…e nested attributes
  • Loading branch information
akinross committed Dec 20, 2024
1 parent 8f7cd5c commit 5db7883
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 53 deletions.
7 changes: 1 addition & 6 deletions gen/templates/resource.go.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -2621,14 +2621,9 @@ var {{.ResourceClassName}}{{.ParentHierarchy}}Type = types.ObjectType{
stringplanmodifier.UseStateForUnknown(),
},
{{- end}}
{{- if or .ValidValues $.TemplateProperties.HasReadOnlyProperties}}
{{- if or .ValidValues }}
Validators: []validator.String{
{{- if .ValidValues}}
stringvalidator.OneOf({{- validatorString .ValidValues}}),
{{- end}}
{{- if or .IsNaming .IsRequired}}
MakeStringRequired(),
{{- end}}
},
{{- end}}
MarkdownDescription: `{{.Comment}}`,
Expand Down
17 changes: 0 additions & 17 deletions internal/provider/resource_aci_application_epg.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 0 additions & 28 deletions internal/provider/resource_aci_bridge_domain.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions internal/provider/resource_aci_endpoint_security_group.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5db7883

Please sign in to comment.