Skip to content

Commit

Permalink
gofumpt
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismarget-j committed Oct 21, 2024
1 parent 78e3b24 commit fdd8cd1
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
5 changes: 2 additions & 3 deletions apstra/apstra_validator/forbidden_when_value_is.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package apstravalidator
import (
"context"
"fmt"

"github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatordiag"
"github.com/hashicorp/terraform-plugin-framework/attr"
"github.com/hashicorp/terraform-plugin-framework/diag"
Expand All @@ -11,9 +12,7 @@ import (
"github.com/hashicorp/terraform-plugin-framework/tfsdk"
)

var (
_ NineTypesValidator = ForbiddenWhenValueIsValidator{}
)
var _ NineTypesValidator = ForbiddenWhenValueIsValidator{}

type ForbiddenWhenValueIsValidator struct {
Expression path.Expression
Expand Down
5 changes: 2 additions & 3 deletions apstra/apstra_validator/required_when_value_is.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,15 @@ package apstravalidator
import (
"context"
"fmt"

"github.com/hashicorp/terraform-plugin-framework/attr"
"github.com/hashicorp/terraform-plugin-framework/diag"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/tfsdk"
)

var (
_ NineTypesValidator = RequiredWhenValueIsValidator{}
)
var _ NineTypesValidator = RequiredWhenValueIsValidator{}

type RequiredWhenValueIsValidator struct {
expression path.Expression
Expand Down
5 changes: 2 additions & 3 deletions apstra/apstra_validator/required_when_value_null.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,15 @@ package apstravalidator
import (
"context"
"fmt"

"github.com/hashicorp/terraform-plugin-framework/attr"
"github.com/hashicorp/terraform-plugin-framework/diag"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/tfsdk"
)

var (
_ NineTypesValidator = RequiredWhenValueNullValidator{}
)
var _ NineTypesValidator = RequiredWhenValueNullValidator{}

type RequiredWhenValueNullValidator struct {
expression path.Expression
Expand Down
1 change: 1 addition & 0 deletions apstra/apstra_validator/value_at_must_be.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package apstravalidator
import (
"context"
"fmt"

"github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatordiag"
"github.com/hashicorp/terraform-plugin-framework/attr"
"github.com/hashicorp/terraform-plugin-framework/diag"
Expand Down
3 changes: 2 additions & 1 deletion apstra/apstra_validator/when_value_is.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ package apstravalidator
import (
"context"
"fmt"
"strings"

"github.com/Juniper/terraform-provider-apstra/apstra/utils"
"github.com/hashicorp/terraform-plugin-framework/attr"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"strings"
)

var _ NineTypesValidator = whenValueIsValidator{}
Expand Down

0 comments on commit fdd8cd1

Please sign in to comment.