generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 107
Closed
Labels
papercutSmall annoyances in the Cedar SDK. Lower priority fixes than bugs. Smaller than a feature requestSmall annoyances in the Cedar SDK. Lower priority fixes than bugs. Smaller than a feature request
Description
Before opening, please confirm:
- I have searched for duplicate or closed issues.
- I have read the guide for submitting bug reports.
- I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
Bug Category
Schemas and Validation
Describe the bug
If we replace the Policy 2 of the TinyTodo example like this,
// Policy 2: A User can see a List if they are either a reader or editor
permit (
principal,
action == Action::"GetList",
resource
)
when { 3 < resource.readers || principal in resource.editors };
We get error messages,
Unexpected type. Expected {"type":"Long"} but saw {"type":"Entity","name":"Team"}
Expected behavior
This error message could be more readable like Expected type 'Long' but saw entity type 'Team'
Reproduction steps
- Replace Policy 2
- Run
cedar validate --schema tinytodo.cedarschema.json --policies policies.cedar
Code Snippet
// Put your code below this line.
Log output
// Put your output below this line
Additional configuration
No response
Operating System
No response
Additional information and screenshots
No response
Metadata
Metadata
Assignees
Labels
papercutSmall annoyances in the Cedar SDK. Lower priority fixes than bugs. Smaller than a feature requestSmall annoyances in the Cedar SDK. Lower priority fixes than bugs. Smaller than a feature request