Skip to content

Conversation

cdisselkoen
Copy link
Contributor

Description of changes

Bugfix for unreleased code, specifically #1204. 1204 accidentally disallowed tags as an attribute name, which would be a breaking change. This PR fixes that, and adds appropriate tests. Also moves around a couple test utilities so that they can be used by the new test.

Issue #, if available

Checklist for requesting a review

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

  • A change (breaking or otherwise) that only impacts unreleased or experimental code.

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

  • Does not update the CHANGELOG because my change does not significantly impact released code.

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: Craig Disselkoen <[email protected]>
#[test]
fn attr_named_tags() {
let src = r#"
entity E { tags: Set<{key: String, value: Set<String>}> };
Copy link
Contributor

Choose a reason for hiding this comment

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

IIRC, shaobo built in a warning mechanism for the Cedar schema format. Feels like it could be worth warning here.

@cdisselkoen cdisselkoen merged commit 411f7bc into main Sep 17, 2024
17 of 19 checks passed
@cdisselkoen cdisselkoen deleted the cdisselkoen/fix-tags-id branch September 17, 2024 16:28
shaobo-he-aws pushed a commit that referenced this pull request Sep 25, 2024
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