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

Implement policy builder validation #15

Open
jhalterman opened this issue Sep 22, 2023 · 0 comments
Open

Implement policy builder validation #15

jhalterman opened this issue Sep 22, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@jhalterman
Copy link
Collaborator

jhalterman commented Sep 22, 2023

This would be an optional way of building policies that returns the policy else a validation error on invalid input. Ex:

err := policy.Builder().Validate()
p, err:= policy.Builder().ValidateAndBuild()
@jhalterman jhalterman added the enhancement New feature or request label Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant