Skip to content

Conversation

shaobo-he-aws
Copy link
Contributor

@shaobo-he-aws shaobo-he-aws commented Aug 26, 2024

Description of changes

This PR eagerly disallows common type declarations with names specified by #1139. That is, Cedar forbids schemas with such declarations even though they are never referenced.

Issue #, if available

Checklist for requesting a review

The change in this PR is (choose one, and delete the other options):

  • A breaking change requiring a major version bump to cedar-policy (e.g., changes to the signature of an existing API).

I confirm that this PR (choose one, and delete the other options):

  • Updates the "Unreleased" section of the CHANGELOG with a description of my change (required for major/minor version bumps).

I confirm that cedar-spec (choose one, and delete the other options):

  • Does not require updates because my change does not impact the Cedar formal model or DRT infrastructure.

Signed-off-by: Shaobo He <[email protected]>
@shaobo-he-aws shaobo-he-aws linked an issue Aug 26, 2024 that may be closed by this pull request
2 tasks
Signed-off-by: Shaobo He <[email protected]>
Signed-off-by: Shaobo He <[email protected]>
shaobo-he-aws and others added 6 commits August 27, 2024 10:39
Signed-off-by: Shaobo He <[email protected]>
Signed-off-by: Shaobo He <[email protected]>
Signed-off-by: Shaobo He <[email protected]>
Signed-off-by: Shaobo He <[email protected]>
Signed-off-by: Shaobo He <[email protected]>
@shaobo-he-aws shaobo-he-aws merged commit 1de921e into main Aug 28, 2024
18 of 19 checks passed
@shaobo-he-aws shaobo-he-aws deleted the 1139-more-restrictions-on-type-shadowing-collisions branch August 28, 2024 16:33
@khieta khieta mentioned this pull request Aug 29, 2024
oflatt pushed a commit to oflatt/cedar that referenced this pull request Aug 29, 2024
Signed-off-by: Shaobo He <[email protected]>
Co-authored-by: Craig Disselkoen <[email protected]>
oflatt pushed a commit to oflatt/cedar that referenced this pull request Aug 29, 2024
Signed-off-by: Shaobo He <[email protected]>
Co-authored-by: Craig Disselkoen <[email protected]>
Signed-off-by: oflatt <[email protected]>
shaobo-he-aws added a commit that referenced this pull request May 20, 2025
Signed-off-by: Shaobo He <[email protected]>
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.

More restrictions on type shadowing / collisions
3 participants