-
Notifications
You must be signed in to change notification settings - Fork 93
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
Improve precision when typechecking in
#105
Comments
From #310, a substantial improvement can be had by implementing singleton action types. This would make giving precise types to |
Implementing this in a backwards compatible manner requires #539 |
Related to #638 |
Category
Cedar validation features
Describe the feature you'd like to request
The validator sometimes gives imprecise types to expressions using
in
.principal in []
will type asBool
when principal is Unspecified, although we could give the more precise type ofFalse
.action in action
orprincipal in principal
will type asBool
, even though we could give them typeTrue
.Action::"read"
is a descendant ofAction::"read_or_write"
, thenAction::"read"
inAction::"read_or_write"
will type asBool
, even though we could type it asTrue
.Describe the solution you'd like
n/a
Describe alternatives you've considered
n/a
Additional context
No response
Is this something that you'd be interested in working on?
The text was updated successfully, but these errors were encountered: