Skip to content

Commit

Permalink
Merge pull request #39860 from hashicorp/td-boolequals
Browse files Browse the repository at this point in the history
Changed boolEquals to boolvalidator.Equals package and removed custom validator
  • Loading branch information
jar-b authored Oct 23, 2024
2 parents bc57122 + 1b5d8e7 commit bcc1577
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 122 deletions.
51 changes: 0 additions & 51 deletions internal/framework/validators/bool_equals.go

This file was deleted.

69 changes: 0 additions & 69 deletions internal/framework/validators/bool_equals_test.go

This file was deleted.

3 changes: 1 addition & 2 deletions internal/service/synthetics/runtime_version_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import (
"github.com/hashicorp/terraform-provider-aws/internal/create"
"github.com/hashicorp/terraform-provider-aws/internal/framework"
"github.com/hashicorp/terraform-provider-aws/internal/framework/flex"
fwvalidators "github.com/hashicorp/terraform-provider-aws/internal/framework/validators"
"github.com/hashicorp/terraform-provider-aws/names"
)

Expand Down Expand Up @@ -62,7 +61,7 @@ func (d *dataSourceRuntimeVersion) Schema(ctx context.Context, req datasource.Sc
"latest": schema.BoolAttribute{
Optional: true,
Validators: []validator.Bool{
fwvalidators.BoolEquals(true),
boolvalidator.Equals(true),
boolvalidator.ExactlyOneOf(path.Expressions{
path.MatchRoot("latest"),
path.MatchRoot(names.AttrVersion),
Expand Down

0 comments on commit bcc1577

Please sign in to comment.