diff --git a/apstra/apstra_validator/forbidden_when_value_is.go b/apstra/apstra_validator/forbidden_when_value_is.go index 3fd807e6..8a31a642 100644 --- a/apstra/apstra_validator/forbidden_when_value_is.go +++ b/apstra/apstra_validator/forbidden_when_value_is.go @@ -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" @@ -11,9 +12,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/tfsdk" ) -var ( - _ NineTypesValidator = ForbiddenWhenValueIsValidator{} -) +var _ NineTypesValidator = ForbiddenWhenValueIsValidator{} type ForbiddenWhenValueIsValidator struct { Expression path.Expression diff --git a/apstra/apstra_validator/required_when_value_is.go b/apstra/apstra_validator/required_when_value_is.go index 60230220..7bae12dc 100644 --- a/apstra/apstra_validator/required_when_value_is.go +++ b/apstra/apstra_validator/required_when_value_is.go @@ -3,6 +3,7 @@ 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" @@ -10,9 +11,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/tfsdk" ) -var ( - _ NineTypesValidator = RequiredWhenValueIsValidator{} -) +var _ NineTypesValidator = RequiredWhenValueIsValidator{} type RequiredWhenValueIsValidator struct { expression path.Expression diff --git a/apstra/apstra_validator/required_when_value_null.go b/apstra/apstra_validator/required_when_value_null.go index 59dbbb99..31b76c9d 100644 --- a/apstra/apstra_validator/required_when_value_null.go +++ b/apstra/apstra_validator/required_when_value_null.go @@ -3,6 +3,7 @@ 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" @@ -10,9 +11,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/tfsdk" ) -var ( - _ NineTypesValidator = RequiredWhenValueNullValidator{} -) +var _ NineTypesValidator = RequiredWhenValueNullValidator{} type RequiredWhenValueNullValidator struct { expression path.Expression diff --git a/apstra/apstra_validator/value_at_must_be.go b/apstra/apstra_validator/value_at_must_be.go index ab2e4a09..095622a4 100644 --- a/apstra/apstra_validator/value_at_must_be.go +++ b/apstra/apstra_validator/value_at_must_be.go @@ -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" diff --git a/apstra/apstra_validator/when_value_is.go b/apstra/apstra_validator/when_value_is.go index 44d29aa1..21c45ba7 100644 --- a/apstra/apstra_validator/when_value_is.go +++ b/apstra/apstra_validator/when_value_is.go @@ -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{}