About the Plugin Development category

Information about Terraform Plugin development. Please post your questions, best practices and experiences here.

For more information regarding Terraform Plugin development, please see this link.

Hello can you help for below error I am facing after upgrade to SDK 1.0

Path: members
Target Type: []hashicups.membersModel
Suggested Type: basetypes.ListValue

my code in Create function of resource

id := uuid.New()
	plan.ID = types.StringValue(id.String())
	plan.Members = []membersModel{
		{
			Name: types.StringValue("Anshuman Patil"),
			MobileeNumbers: []mobileModel{
				{
					Number:  types.StringValue("7875797913"),
					Network: types.StringValue("vodafone"),
				},
			},
		},
	}

My Schema is completely Computed


resp.Schema = schema.Schema{
		Description: "Fetches the list of family members.",
		Attributes: map[string]schema.Attribute{
			"id": schema.StringAttribute{
				Description: "Placeholder identifier attribute.",
				Computed:    true,
			},

			"members": schema.ListNestedAttribute{
				Description: "List of members.",
				Computed:    true,
				NestedObject: schema.NestedAttributeObject{
					Attributes: map[string]schema.Attribute{
						"name": schema.StringAttribute{
							Description: "Name of the person.",
							Computed:    true,
						},
						"mobile": schema.ListNestedAttribute{
							Description: "List of mobile numbers of person.",
							Computed:    true,
							NestedObject: schema.NestedAttributeObject{
								Attributes: map[string]schema.Attribute{
									"number": schema.StringAttribute{
										Description: "Mobile number.",
										Computed:    true,
									},
									"network": schema.StringAttribute{
										Description: "Mobile network.",
										Computed:    true,
									},
								},
							},
						},
					},
				},
			},
		},
	}

And model like below

type orderResourceModel struct {
	ID      types.String   `tfsdk:"id"`
	Members []membersModel `tfsdk:"members"`
}

type membersModel struct {
	Name           types.String  `tfsdk:"name"`
	MobileeNumbers []mobileModel `tfsdk:"mobile"`
}

type mobileModel struct {
	Number  types.String `tfsdk:"number"`
	Network types.String `tfsdk:"network"`
}

As I mentioned my all attributes are computed so I am not passing anything to resource in configuration like

resource "patilfamily_adopt" "edu" {

}

output "patilfamily_adopt" {

value = patilfamily_adopt.edu

}

What I might be missing here ?, Thanks in advance