Skip to content

Commit 183a0c0

Browse files
authored
fix: Setting default value for params schema in resource app (#259)
1 parent c0a92fa commit 183a0c0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cloudfoundry/provider/resource_app.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import (
2222
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
2323
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
2424
"github.com/hashicorp/terraform-plugin-framework/resource/schema/setplanmodifier"
25+
"github.com/hashicorp/terraform-plugin-framework/resource/schema/stringdefault"
2526
"github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier"
2627
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
2728
"github.com/hashicorp/terraform-plugin-framework/tfsdk"
@@ -161,6 +162,7 @@ func (r *appResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *
161162
MarkdownDescription: "A json object to send to the service broker during service binding.",
162163
Optional: true,
163164
Computed: true,
165+
Default: stringdefault.StaticString("{}"),
164166
},
165167
},
166168
},

0 commit comments

Comments
 (0)