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

feat: add custom jsonLogic string evaluators #158

Merged
merged 6 commits into from
Feb 21, 2024

Conversation

bacherfl
Copy link
Contributor

Part of #139

This PR adds the starts_with and ends_with custom JsonLogic evaluators

Signed-off-by: Florian Bacher <[email protected]>
Signed-off-by: Florian Bacher <[email protected]>
@bacherfl bacherfl marked this pull request as ready for review February 15, 2024 14:02
@bacherfl bacherfl requested a review from a team as a code owner February 15, 2024 14:02
Comment on lines +53 to +60
var targetingString = @"{""ends_with"": [
{
""var"": [
""color""
]
},
""purple""
]}";
Copy link
Member

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.

Copy link
Member

@toddbaert toddbaert left a 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

@toddbaert toddbaert merged commit 728286c into main Feb 21, 2024
8 checks passed
@bacherfl bacherfl deleted the feat/jsonlogic-string-comparison branch February 22, 2024 06:14
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