Skip to content
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

Allow to use types defined from bool, string, int and int64 as ast Values #69

Merged
merged 2 commits into from
Nov 21, 2024

Conversation

forgems
Copy link
Contributor

@forgems forgems commented Nov 21, 2024

Addresses #IDX-461

This change will simplify usage of values that underlying type is based on bool, string, int and int64 as Node.

Currently if we have a value of the custom type ex type CustomBool bool we have to convert it to bool or types.Boolean first. By adding ~ at type constraints to Boolean, String and Long functions we can use variables of derived type directly without the need of conversion

Values

Signed-off-by: Marcin Swiderski <marcin.swiderski@strongdm.com>
@forgems forgems force-pushed the IDX-461-simplify-string branch from 5639094 to 200793a Compare November 21, 2024 10:30
ast/ast_test.go Outdated Show resolved Hide resolved
Signed-off-by: Marcin Swiderski <marcin.swiderski@strongdm.com>
@philhassey philhassey merged commit ccfb96b into cedar-policy:main Nov 21, 2024
3 checks passed
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.

2 participants