Skip to content

Commit cc4a6c7

Browse files
authored
docs: Mention id attribute addition for SDKv2 migration (#990)
Reference: #896
1 parent ce4eb8f commit cc4a6c7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

website/docs/plugin/framework/migrating/attributes-blocks/attribute-schema.mdx

+2
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,13 @@ func (r *ThingResource) Schema(ctx context.Context, req resource.SchemaRequest,
5050
```
5151
5252
## Migration Notes
53+
5354
Remember the following differences between SDKv2 and the Framework when completing the migration.
5455
5556
- In SDKv2, attributes are defined by a map from attribute names to `schema.Schema` structs in the `Schema` field of
5657
your resource's schema. In the Framework, attributes are defined by a map from attribute names to `schema.Attribute`
5758
implementations in your resource's schema, which is returned by the resource `Schema` method.
59+
- In SDKv2, the computed string `id` attribute was implicitly included in the schema. In the Framework, it must be explicitly defined in the schema.
5860
- There are several differences between the implementation of attributes in SDKv2 and the Framework. Refer to the other
5961
pages in the Attributes & Blocks section of this migration guide for more details.
6062

0 commit comments

Comments
 (0)