From 70fcc08e8f71861748b98edc9c04423d6d28fe98 Mon Sep 17 00:00:00 2001 From: Ethan Dickson Date: Fri, 12 Jul 2024 08:52:46 +0000 Subject: [PATCH] fixup --- internal/provider/user_data_source.go | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/internal/provider/user_data_source.go b/internal/provider/user_data_source.go index 6e4faef..66b50aa 100644 --- a/internal/provider/user_data_source.go +++ b/internal/provider/user_data_source.go @@ -53,11 +53,11 @@ func (d *UserDataSource) Schema(ctx context.Context, req datasource.SchemaReques // Validation handled by ConfigValidators Attributes: map[string]schema.Attribute{ "id": schema.StringAttribute{ - MarkdownDescription: "The ID of the user to retrieve. This field will be populated if a username is supplied", + MarkdownDescription: "The ID of the user to retrieve. This field will be populated if a username is supplied.", Optional: true, }, "username": schema.StringAttribute{ - MarkdownDescription: "The username of the user to retrieve. This field will be populated if an ID is supplied", + MarkdownDescription: "The username of the user to retrieve. This field will be populated if an ID is supplied.", Optional: true, }, "email": schema.StringAttribute{ @@ -72,18 +72,10 @@ func (d *UserDataSource) Schema(ctx context.Context, req datasource.SchemaReques MarkdownDescription: "Roles assigned to the user. Valid roles are 'owner', 'template-admin', 'user-admin', and 'auditor'.", Computed: true, ElementType: types.StringType, - // Validators: []validator.Set{ - // setvalidator.ValueStringsAre( - // stringvalidator.OneOf("owner", "template-admin", "user-admin", "auditor"), - // ), - // }, }, "login_type": schema.StringAttribute{ MarkdownDescription: "Type of login for the user. Valid types are 'none', 'password', 'github', and 'oidc'.", Computed: true, - // Validators: []validator.String{ - // stringvalidator.OneOf("none", "password", "github", "oidc"), - // }, }, "suspended": schema.BoolAttribute{ MarkdownDescription: "Whether the user is suspended.",