Skip to content

Adds ability to parse entities using a provided schema during evaluation.#645

Merged
chaluli merged 3 commits into
cedar-policy:mainfrom
chaluli:main
Jun 24, 2025
Merged

Adds ability to parse entities using a provided schema during evaluation.#645
chaluli merged 3 commits into
cedar-policy:mainfrom
chaluli:main

Conversation

@chaluli

@chaluli chaluli commented Jun 24, 2025

Copy link
Copy Markdown

Addresses issue #633 which noticed the difference between entity parsing with and without schemas. This PR updates the cedar-lean-cli to allow a user to provide a schema while parsing entities.

…ion.

Signed-off-by: Charlie Murphy <mutmoth@amazon.com>

@cdisselkoen cdisselkoen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good. Do we need similar functionality for parsing Context (which can also take into account a Schema)?

Comment thread cedar-lean-cli/src/evaluation.rs Outdated
@chaluli

chaluli commented Jun 24, 2025

Copy link
Copy Markdown
Author

Looks good. Do we need similar functionality for parsing Context (which can also take into account a Schema)?

Good point. I wasn't thinking about contexts. Will make that change as well.

chaluli added 2 commits June 24, 2025 15:46
Signed-off-by: Charlie Murphy <mutmoth@amazon.com>
Signed-off-by: Charlie Murphy <mutmoth@amazon.com>
@chaluli chaluli merged commit 2b113dd into cedar-policy:main Jun 24, 2025
8 checks passed
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