mrparkers / terraform-provider-keycloak

Terraform provider for Keycloak
https://registry.terraform.io/providers/mrparkers/keycloak/latest/docs
MIT License
617 stars 303 forks source link

Incorrect example in user profile documentation #783

Open mrpatrickpilch opened 1 year ago

mrpatrickpilch commented 1 year ago

I'm leveraging the feature introduced in #636 and enjoying it!

But I noticed the documentation has the following example for the pattern validator:

validator {
  name   = "pattern"
  config = {
    pattern       = "^[a-z]+$"
    error_message = "Nope"
  }
}

But the config should state error-message instead. See https://github.com/keycloak/keycloak/blob/20.0.1/server-spi-private/src/main/java/org/keycloak/validate/validators/PatternValidator.java#L49

kasir-barati commented 1 year ago

@mrpatrickpilch Is the pattern in Java language? I could not find any place that tell me in what language I am allowed to enter this regex for keycloak when i am using Terraform