Skip to content

Implement #1139#1150

Merged
shaobo-he-aws merged 10 commits intomainfrom
1139-more-restrictions-on-type-shadowing-collisions
Aug 28, 2024
Merged

Implement #1139#1150
shaobo-he-aws merged 10 commits intomainfrom
1139-more-restrictions-on-type-shadowing-collisions

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 <shaobohe@amazon.com>
@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 <shaobohe@amazon.com>
Signed-off-by: Shaobo He <shaobohe@amazon.com>
shaobo-he-aws and others added 6 commits August 27, 2024 10:39
Co-authored-by: Craig Disselkoen <cdiss@amazon.com>
Signed-off-by: Shaobo He <shaobohe@amazon.com>
Signed-off-by: Shaobo He <shaobohe@amazon.com>
Signed-off-by: Shaobo He <shaobohe@amazon.com>
Signed-off-by: Shaobo He <shaobohe@amazon.com>
Signed-off-by: Shaobo He <shaobohe@amazon.com>
Signed-off-by: Shaobo He <shaobohe@amazon.com>
@shaobo-he-aws shaobo-he-aws merged commit 1de921e into main Aug 28, 2024
@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 <shaobohe@amazon.com>
Co-authored-by: Craig Disselkoen <cdiss@amazon.com>
oflatt pushed a commit to oflatt/cedar that referenced this pull request Aug 29, 2024
Signed-off-by: Shaobo He <shaobohe@amazon.com>
Co-authored-by: Craig Disselkoen <cdiss@amazon.com>
Signed-off-by: oflatt <oflatt@gmail.com>
shaobo-he-aws added a commit that referenced this pull request May 20, 2025
Signed-off-by: Shaobo He <shaobohe@amazon.com>
benelser pushed a commit to benelser/cedar that referenced this pull request Jan 16, 2026
Signed-off-by: Shaobo He <shaobohe@amazon.com>
Co-authored-by: Craig Disselkoen <cdiss@amazon.com>
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