Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds "pattern" property for okta_user_schema and okta_user_base_schema. #159

Merged
merged 5 commits into from
Dec 22, 2020

Conversation

fitzoh
Copy link
Contributor

@fitzoh fitzoh commented Jul 29, 2020

(At least partially) addresses https://github.com/terraform-providers/terraform-provider-okta/issues/149.

From the API docs it looks like this pattern might only be valid for the login property.

Not sure if that's a restriction that should be enforced here.

Holding off on doc updates until I can get some feedback on how to proceed.

@ghost ghost added the size/XS label Jul 29, 2020
"pattern": &schema.Schema{
Type: schema.TypeString,
Optional: true,
Description: "The validation pattern to use for the subschema. Must be null, '.+', or '[<pattern>]+'",
Copy link
Contributor Author

@fitzoh fitzoh Jul 29, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Description: "The validation pattern to use for the subschema. Must be null, '.+', or '[<pattern>]+'",
Description: "The validation pattern to use for the subschema. Must be '.+', or '[<pattern>]+' if present.'",

Think this might be slightly better, still not sure if we would want to clarify what the pattern can look like.

@noinarisak noinarisak added needs-investigation Needs further investigation size/S and removed size/XS labels Oct 7, 2020
…okta into user-schema-patterns

� Conflicts:
�	okta/user_schema.go
�	sdk/user_schema_models.go
@bogdanprodan-okta bogdanprodan-okta added enhancement Asking for new behavior or feature and removed needs-investigation Needs further investigation labels Dec 22, 2020
@bogdanprodan-okta bogdanprodan-okta linked an issue Dec 22, 2020 that may be closed by this pull request
@bogdanprodan-okta
Copy link
Contributor

bogdanprodan-okta commented Dec 22, 2020

Hi @fitzoh! Thanks for the PR! I took the liberty to push some fixes regarding the pattern property for the login field. If everything goes as planned, this will be published in v3.7.3 next week.

@fitzoh
Copy link
Contributor Author

fitzoh commented Dec 22, 2020

Great, thanks @bogdanprodan-okta !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Asking for new behavior or feature size/S
Projects
None yet
3 participants