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

[cedar-lean] add some more utility functions #476

Merged
merged 2 commits into from
Nov 18, 2024
Merged

Conversation

cdisselkoen
Copy link
Contributor

We already have Schema.toEnvironments to get all the possible validation environments; this PR adds Schema.getEnvironment to get a particular validation environment.

We already have jsonToTemplate to get a (possibly-zero-slot) Template, now we have jsonToPolicy to explicitly get a static policy, erroring if there are slots.

Signed-off-by: Craig Disselkoen <[email protected]>
Copy link
Contributor

@john-h-kastner-aws john-h-kastner-aws left a comment

Choose a reason for hiding this comment

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

Looks good. Are you adding these for anything in particular?

@cdisselkoen
Copy link
Contributor Author

They'll be useful for some internal work. But organizationally they belong in this GitHub repo

@john-h-kastner-aws
Copy link
Contributor

Cool

@cdisselkoen cdisselkoen merged commit d5c8bee into main Nov 18, 2024
6 checks passed
@cdisselkoen cdisselkoen deleted the cdisselkoen/utilities branch November 18, 2024 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants