Hi!
I’m trying to compose several structs to describe my attribute schema:
type testDataSourceModel1 struct {
ID types.String `tfsdk:"id"`
}
type testDataSourceModel2 struct {
testDataSourceModel1
Version types.String `tfsdk:"version"`
}
But Terraform cannot find tags in a parent struct:
data.teamcity_test.buildserver: Reading...
╷
│ Error: Value Conversion Error
│
│ with data.teamcity_test.buildserver,
│ An unexpected error was encountered trying to convert the Terraform value. This is always an error in the provider. Please report the
│ following to the provider developer:
│
│ expected tftypes.Object["id":tftypes.String, "version":tftypes.String], got tftypes.Object["version":tftypes.String]
Am I doing something wrong?
Here is the full sample: test.go · GitHub
That’s Framework 1.1.1 and Terraform 1.3.5