Skip to content

Conversation

@cdisselkoen
Copy link
Contributor

Description of changes

Implements the needed changes for RFC 68 in the parsers for both schema formats (Cedar schema format and JSON schema format). Includes tests that things parse properly and that invalid uses of embedded attribute maps correctly fail to parse. Does not include any changes to the validator/typechecker itself; those will come in a future PR. These parser changes are reasonably separable though, and this PR is large enough as-is.

With this PR, if anyone tries to use the new RFC 68 syntax, instead of an incomprehensible parser error, they will get a nice message saying that embedded attribute maps are not fully supported yet.

Issue #, if available

Part of #1104

Checklist for requesting a review

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

  • A bug fix or other functionality change requiring a patch to cedar-policy.

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):

  • Requires updates, and I have made / will make these updates myself. (Please include in your description a timeline or link to the relevant PR in cedar-spec, and how you have tested that your updates are correct.)

@shaobo-he-aws
Copy link
Contributor

There are merge conflicts. Could you resolve them?

@cdisselkoen
Copy link
Contributor Author

Working on it

@cdisselkoen
Copy link
Contributor Author

Merge conflicts fixed

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

@shaobo-he-aws shaobo-he-aws left a comment

Choose a reason for hiding this comment

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

LGTM.

Signed-off-by: Craig Disselkoen <[email protected]>
@cdisselkoen cdisselkoen merged commit e63f663 into main Aug 20, 2024
@cdisselkoen cdisselkoen deleted the cdisselkoen/rfc-68-parsers branch August 20, 2024 13:29
cdisselkoen added a commit that referenced this pull request Sep 13, 2024
This reverts commit e63f663.

Signed-off-by: Craig Disselkoen <[email protected]>
cdisselkoen added a commit that referenced this pull request Sep 13, 2024
This reverts commit e63f663.

Signed-off-by: Craig Disselkoen <[email protected]>
cdisselkoen added a commit that referenced this pull request Sep 13, 2024
This reverts commit e63f663.

Signed-off-by: Craig Disselkoen <[email protected]>
cdisselkoen added a commit that referenced this pull request Sep 13, 2024
This reverts commit e63f663.

Signed-off-by: Craig Disselkoen <[email protected]>
cdisselkoen added a commit that referenced this pull request Sep 13, 2024
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