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):
[x] 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):
[x] 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):
[x] 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.)
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):
cedar-policy
.I confirm that this PR (choose one, and delete the other options):
I confirm that
cedar-spec
(choose one, and delete the other options):cedar-spec
, and how you have tested that your updates are correct.)