Skip to content

Commit

Permalink
use case-sensitive checks
Browse files Browse the repository at this point in the history
  • Loading branch information
maciaszczykm committed Oct 10, 2024
1 parent 7c648d9 commit 090d896
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/resource/oidc_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (r *OIDCProviderResource) Schema(_ context.Context, _ resource.SchemaReques
Required: true,
PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()},
Validators: []validator.String{
stringvalidator.OneOfCaseInsensitive(
stringvalidator.OneOf(
algorithms.Map(gqlclient.AllOidcProviderType,
func(t gqlclient.OidcProviderType) string { return string(t) })...),
},
Expand All @@ -80,7 +80,7 @@ func (r *OIDCProviderResource) Schema(_ context.Context, _ resource.SchemaReques
Optional: true,
PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()},
Validators: []validator.String{
stringvalidator.OneOfCaseInsensitive(
stringvalidator.OneOf(
algorithms.Map(gqlclient.AllOidcAuthMethod,
func(t gqlclient.OidcAuthMethod) string { return string(t) })...),
},
Expand Down

0 comments on commit 090d896

Please sign in to comment.