@@ -57,7 +57,7 @@ func (r *OrganizationResource) Schema(ctx context.Context, req resource.SchemaRe
5757 },
5858 },
5959 "name" : schema.StringAttribute {
60- MarkdownDescription : "Username of the organization." ,
60+ MarkdownDescription : "Name of the organization." ,
6161 Required : true ,
6262 Validators : []validator.String {
6363 codersdkvalidator .Name (),
@@ -67,6 +67,7 @@ func (r *OrganizationResource) Schema(ctx context.Context, req resource.SchemaRe
6767 MarkdownDescription : "Display name of the organization. Defaults to name." ,
6868 Computed : true ,
6969 Optional : true ,
70+ Default : stringdefault .StaticString ("" ),
7071 Validators : []validator.String {
7172 codersdkvalidator .DisplayName (),
7273 },
@@ -224,6 +225,6 @@ func (r *OrganizationResource) Delete(ctx context.Context, req resource.DeleteRe
224225
225226func (r * OrganizationResource ) ImportState (ctx context.Context , req resource.ImportStateRequest , resp * resource.ImportStateResponse ) {
226227 // Terraform will eventually `Read` in the rest of the fields after we have
227- // set the `id ` attribute.
228- resource .ImportStatePassthroughID (ctx , path .Root ("id " ), req , resp )
228+ // set the `name ` attribute.
229+ resource .ImportStatePassthroughID (ctx , path .Root ("name " ), req , resp )
229230}
0 commit comments