diff --git a/vault/resource_identity_oidc_scope.go b/vault/resource_identity_oidc_scope.go index 4d3717ac6..90b140b18 100644 --- a/vault/resource_identity_oidc_scope.go +++ b/vault/resource_identity_oidc_scope.go @@ -26,10 +26,9 @@ func identityOIDCScopeResource() *schema.Resource { Required: true, }, "template": { - Type: schema.TypeString, - Description: "The template string for the scope. This may be provided as escaped JSON or base64 encoded JSON.", - Optional: true, - ValidateFunc: ValidateDataJSONFunc("vault_identity_oidc_scope"), + Type: schema.TypeString, + Description: "The template string for the scope. This may be provided as escaped JSON or base64 encoded JSON.", + Optional: true, }, "description": { Type: schema.TypeString, diff --git a/website/docs/r/identity_oidc_scope.html.md b/website/docs/r/identity_oidc_scope.html.md index 9183ee3ff..ba28c1e1d 100644 --- a/website/docs/r/identity_oidc_scope.html.md +++ b/website/docs/r/identity_oidc_scope.html.md @@ -16,11 +16,7 @@ for more information. ```hcl resource "vault_identity_oidc_scope" "groups" { name = "groups" - template = jsonencode( - { - groups = "{{identity.entity.groups.names}}", - } - ) + template = "{\"groups\":{{identity.entity.groups.names}}}" description = "Vault OIDC Groups Scope" } ```