We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8189f1 commit 8d0d29dCopy full SHA for 8d0d29d
website/docs/plugin/framework/migrating/attributes-blocks/default-values.mdx
@@ -42,6 +42,14 @@ func resourceExample() *schema.Resource {
42
In the Framework, you set default values with the `Default` field on your attribute's definition.
43
44
```go
45
+import (
46
+ "context"
47
+
48
+ "github.com/hashicorp/terraform-plugin-framework/resource"
49
+ "github.com/hashicorp/terraform-plugin-framework/resource/schema"
50
+ "github.com/hashicorp/terraform-plugin-framework/resource/schema/booldefault"
51
+)
52
53
func (r *resourceExample) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) {
54
resp.Schema = schema.Schema{
55
/* ... */
0 commit comments