fix: nested attrs with default → Optional (no Computed), prevents unknown values
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user