fix: nested attrs with default → Optional (no Computed), prevents unknown values

This commit is contained in:
“Naeel”
2026-07-18 23:12:51 +04:00
parent b6f5b481af
commit 35792091bd
6 changed files with 9 additions and 5 deletions
@@ -239,7 +239,7 @@ func NestedSchemaBlock(p types.Param) string {
default:
req := "Required: true"
if p.Default != "" {
req = "Optional: true, Computed: true"
req = "Optional: true"
}
return fmt.Sprintf("schema.%sAttribute{%s,\n\t\t\tAttributes: map[string]schema.Attribute{", t, req)
}