Skip to content

Commit

Permalink
Comment out validator code
Browse files Browse the repository at this point in the history
It seems that it's not properly implemented and it needs additional investigation to make it right.
  • Loading branch information
edif2008 committed Apr 18, 2024
1 parent f1f3af4 commit 76faa8e
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions internal/provider/onepassword_item_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,8 @@ import (
"fmt"
op "github.com/1Password/connect-sdk-go/onepassword"
"github.com/1Password/terraform-provider-onepassword/internal/onepassword"
"github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-log/tflog"
)
Expand Down Expand Up @@ -85,11 +82,11 @@ func (d *OnePasswordItemDataSource) Schema(ctx context.Context, req datasource.S
MarkdownDescription: "The UUID of the item to retrieve. This field will be populated with the UUID of the item if the item it looked up by its title.",
Optional: true,
Computed: true,
Validators: []validator.String{
stringvalidator.ExactlyOneOf(path.Expressions{
path.MatchRoot("name"),
}...),
},
//Validators: []validator.String{
// stringvalidator.ExactlyOneOf(path.Expressions{
// path.MatchRoot("name"),
// }...),
//},
},
"title": schema.StringAttribute{
MarkdownDescription: "The title of the item to retrieve. This field will be populated with the title of the item if the item it looked up by its UUID.",
Expand Down

0 comments on commit 76faa8e

Please sign in to comment.