-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Propagate some source locations from cedar syntax schema parser to JSON syntax structures #1405
Conversation
…ON syntax structures Signed-off-by: Craig Disselkoen <cdiss@amazon.com>
A high level question: Should we have a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Maybe add a test case demonstrating the new source locations?
This is a great idea. It would mean that we have to change the |
Well the answer is, it's not used anywhere in |
Ah, quickly discovered the problem: |
I'm fine as it is. We can always refactor the code when it's deemed necessary. |
Description of changes
Propagates source locations on the Cedar schema format's
EntityDecl
,ActionDecl
, andTypeDecl
to the corresponding structures injson_schema
. Partially addresses #1084, although we probably need to propagate source locations on even more types in order to fully resolve #1084.Issue #, if available
Partial resolution of #1084
Checklist for requesting a review
The change in this PR is (choose one, and delete the other options):
cedar-policy-core
,cedar-validator
, etc.)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.)I confirm that
docs.cedarpolicy.com
(choose one, and delete the other options):