-
Notifications
You must be signed in to change notification settings - Fork 27
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
feat: add custom jsonLogic string evaluators #158
Conversation
Signed-off-by: Florian Bacher <[email protected]>
Signed-off-by: Florian Bacher <[email protected]>
Signed-off-by: Florian Bacher <[email protected]>
var targetingString = @"{""ends_with"": [ | ||
{ | ||
""var"": [ | ||
""color"" | ||
] | ||
}, | ||
""purple"" | ||
]}"; |
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.
Multi-line strings work great for this. The equivalent tests are so ugly in Java.
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.
This looks good, I have one small question, but pre-approving: https://github.com/open-feature/dotnet-sdk-contrib/pull/158/files#r1496412190
Signed-off-by: Florian Bacher <[email protected]>
…/open-feature/dotnet-sdk-contrib into feat/jsonlogic-string-comparison
Part of #139
This PR adds the
starts_with
andends_with
custom JsonLogic evaluators