hashicorp/terraform-plugin-framework (github.com/hashicorp/terraform-plugin-framework)
### [`v1.11.0`](https://togithub.com/hashicorp/terraform-plugin-framework/releases/tag/v1.11.0)
[Compare Source](https://togithub.com/hashicorp/terraform-plugin-framework/compare/v1.10.0...v1.11.0)
NOTES:
- Framework reflection logic (`Config.Get`, `Plan.Get`, etc.) for structs with
`tfsdk` field tags has been updated to support embedded structs that promote exported
fields. For existing structs that embed unexported structs with exported fields, a tfsdk
ignore tag (`tfsdk:"-"`) can be added to ignore all promoted fields.
For example, the following struct will now return an error diagnostic:
```go
type thingResourceModel struct {
Attr1 types.String `tfsdk:"attr_1"`
Attr2 types.Bool `tfsdk:"attr_2"`
// Previously, this embedded struct was ignored, will now promote underlying fields
embeddedModel
}
type embeddedModel struct {
// No `tfsdk` tag
ExportedField string
}
```
To preserve the original behavior, a tfsdk ignore tag can be added to ignore the entire embedded struct:
```go
type thingResourceModel struct {
Attr1 types.String `tfsdk:"attr_1"`
Attr2 types.Bool `tfsdk:"attr_2"`
// This embedded struct will now be ignored
embeddedModel `tfsdk:"-"`
}
type embeddedModel struct {
ExportedField string
}
```
([#1021](https://togithub.com/hashicorp/terraform-plugin-framework/issues/1021))
ENHANCEMENTS:
- all: Added embedded struct support for object to struct conversions with `tfsdk` tags ([#1021](https://togithub.com/hashicorp/terraform-plugin-framework/issues/1021))
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
â™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR contains the following updates:
v1.10.0
->v1.11.0
Release Notes
hashicorp/terraform-plugin-framework (github.com/hashicorp/terraform-plugin-framework)
### [`v1.11.0`](https://togithub.com/hashicorp/terraform-plugin-framework/releases/tag/v1.11.0) [Compare Source](https://togithub.com/hashicorp/terraform-plugin-framework/compare/v1.10.0...v1.11.0) NOTES: - Framework reflection logic (`Config.Get`, `Plan.Get`, etc.) for structs with `tfsdk` field tags has been updated to support embedded structs that promote exported fields. For existing structs that embed unexported structs with exported fields, a tfsdk ignore tag (`tfsdk:"-"`) can be added to ignore all promoted fields. For example, the following struct will now return an error diagnostic: ```go type thingResourceModel struct { Attr1 types.String `tfsdk:"attr_1"` Attr2 types.Bool `tfsdk:"attr_2"` // Previously, this embedded struct was ignored, will now promote underlying fields embeddedModel } type embeddedModel struct { // No `tfsdk` tag ExportedField string } ``` To preserve the original behavior, a tfsdk ignore tag can be added to ignore the entire embedded struct: ```go type thingResourceModel struct { Attr1 types.String `tfsdk:"attr_1"` Attr2 types.Bool `tfsdk:"attr_2"` // This embedded struct will now be ignored embeddedModel `tfsdk:"-"` } type embeddedModel struct { ExportedField string } ``` ([#1021](https://togithub.com/hashicorp/terraform-plugin-framework/issues/1021)) ENHANCEMENTS: - all: Added embedded struct support for object to struct conversions with `tfsdk` tags ([#1021](https://togithub.com/hashicorp/terraform-plugin-framework/issues/1021))Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
â™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.