Skip to content

Commit 9f37975

Browse files
authored
Updating documentation (#70) (#71)
1 parent 8810567 commit 9f37975

File tree

8 files changed

+22
-15
lines changed

8 files changed

+22
-15
lines changed

float64validator/at_least.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func (validator atLeastValidator) Validate(ctx context.Context, request tfsdk.Va
4949
// attribute value:
5050
//
5151
// - Is a number, which can be represented by a 64-bit floating point.
52-
// - Is exclusively greater than the given minimum.
52+
// - Is greater than or equal to the given minimum.
5353
//
5454
// Null (unconfigured) and unknown (known after apply) values are skipped.
5555
func AtLeast(min float64) tfsdk.AttributeValidator {

float64validator/at_most.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ import (
44
"context"
55
"fmt"
66

7-
"github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatordiag"
87
"github.com/hashicorp/terraform-plugin-framework/tfsdk"
8+
9+
"github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatordiag"
910
)
1011

1112
var _ tfsdk.AttributeValidator = atMostValidator{}
@@ -48,7 +49,7 @@ func (validator atMostValidator) Validate(ctx context.Context, request tfsdk.Val
4849
// attribute value:
4950
//
5051
// - Is a number, which can be represented by a 64-bit floating point.
51-
// - Is exclusively less than the given maximum.
52+
// - Is less than or equal to the given maximum.
5253
//
5354
// Null (unconfigured) and unknown (known after apply) values are skipped.
5455
func AtMost(max float64) tfsdk.AttributeValidator {

float64validator/between.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ import (
44
"context"
55
"fmt"
66

7-
"github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatordiag"
87
"github.com/hashicorp/terraform-plugin-framework/tfsdk"
8+
9+
"github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatordiag"
910
)
1011

1112
var _ tfsdk.AttributeValidator = betweenValidator{}
@@ -48,7 +49,7 @@ func (validator betweenValidator) Validate(ctx context.Context, request tfsdk.Va
4849
// attribute value:
4950
//
5051
// - Is a number, which can be represented by a 64-bit floating point.
51-
// - Is exclusively greater than the given minimum and less than the given maximum.
52+
// - Is greater than or equal to the given minimum and less than or equal to the given maximum.
5253
//
5354
// Null (unconfigured) and unknown (known after apply) values are skipped.
5455
func Between(min, max float64) tfsdk.AttributeValidator {

int64validator/at_least.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ import (
44
"context"
55
"fmt"
66

7-
"github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatordiag"
87
"github.com/hashicorp/terraform-plugin-framework/tfsdk"
8+
9+
"github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatordiag"
910
)
1011

1112
var _ tfsdk.AttributeValidator = atLeastValidator{}
@@ -48,7 +49,7 @@ func (validator atLeastValidator) Validate(ctx context.Context, request tfsdk.Va
4849
// attribute value:
4950
//
5051
// - Is a number, which can be represented by a 64-bit integer.
51-
// - Is exclusively greater than the given minimum.
52+
// - Is greater than or equal to the given minimum.
5253
//
5354
// Null (unconfigured) and unknown (known after apply) values are skipped.
5455
func AtLeast(min int64) tfsdk.AttributeValidator {

int64validator/at_most.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ import (
44
"context"
55
"fmt"
66

7-
"github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatordiag"
87
"github.com/hashicorp/terraform-plugin-framework/tfsdk"
8+
9+
"github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatordiag"
910
)
1011

1112
var _ tfsdk.AttributeValidator = atMostValidator{}
@@ -48,7 +49,7 @@ func (validator atMostValidator) Validate(ctx context.Context, request tfsdk.Val
4849
// attribute value:
4950
//
5051
// - Is a number, which can be represented by a 64-bit integer.
51-
// - Is exclusively less than the given maximum.
52+
// - Is less than or equal to the given maximum.
5253
//
5354
// Null (unconfigured) and unknown (known after apply) values are skipped.
5455
func AtMost(max int64) tfsdk.AttributeValidator {

int64validator/between.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ import (
44
"context"
55
"fmt"
66

7-
"github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatordiag"
87
"github.com/hashicorp/terraform-plugin-framework/tfsdk"
8+
9+
"github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatordiag"
910
)
1011

1112
var _ tfsdk.AttributeValidator = betweenValidator{}
@@ -48,7 +49,7 @@ func (validator betweenValidator) Validate(ctx context.Context, request tfsdk.Va
4849
// attribute value:
4950
//
5051
// - Is a number, which can be represented by a 64-bit integer.
51-
// - Is exclusively greater than the given minimum and less than the given maximum.
52+
// - Is greater than or equal to the given minimum and less than or equal to the given maximum.
5253
//
5354
// Null (unconfigured) and unknown (known after apply) values are skipped.
5455
func Between(min, max int64) tfsdk.AttributeValidator {

stringvalidator/length_at_least.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ import (
44
"context"
55
"fmt"
66

7-
"github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatordiag"
87
"github.com/hashicorp/terraform-plugin-framework/tfsdk"
8+
9+
"github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatordiag"
910
)
1011

1112
var _ tfsdk.AttributeValidator = lengthAtLeastValidator{}
@@ -48,7 +49,7 @@ func (validator lengthAtLeastValidator) Validate(ctx context.Context, request tf
4849
// attribute value:
4950
//
5051
// - Is a string.
51-
// - Is of length exclusively greater than the given minimum.
52+
// - Is of length greater than or equal to the given minimum.
5253
//
5354
// Null (unconfigured) and unknown (known after apply) values are skipped.
5455
func LengthAtLeast(minLength int) tfsdk.AttributeValidator {

stringvalidator/length_at_most.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ import (
44
"context"
55
"fmt"
66

7-
"github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatordiag"
87
"github.com/hashicorp/terraform-plugin-framework/tfsdk"
8+
9+
"github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatordiag"
910
)
1011

1112
var _ tfsdk.AttributeValidator = lengthAtMostValidator{}
@@ -48,7 +49,7 @@ func (validator lengthAtMostValidator) Validate(ctx context.Context, request tfs
4849
// attribute value:
4950
//
5051
// - Is a string.
51-
// - Is of length exclusively less than the given maximum.
52+
// - Is of length less than or equal to the given maximum.
5253
//
5354
// Null (unconfigured) and unknown (known after apply) values are skipped.
5455
func LengthAtMost(maxLength int) tfsdk.AttributeValidator {

0 commit comments

Comments
 (0)