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

Adds jsonPath to error messages, so errors can be pinpointed. #53

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

magnarn
Copy link
Contributor

@magnarn magnarn commented Mar 17, 2025

The jsonPath can be used to provide better error messages to users trying
to create valid jsonLogic expressions

Also:
Fixes some exception messages to use the right operator. ("none", "or").
Aligns behavior to reference implementation for sums of unparseable strings,
as well as for between comparisons of > and >=, and for comparison operators
with arrays of more than three values.
Handles edge cases of + and * the way jsonlogic.com does

magnarn added 2 commits March 17, 2025 08:24
The jsonPath can be used to provide better error messages to users trying
to create valid jsonLogic expressions

Also:
Fixes some exception messages to use the right operator. ("none", "or").
Aligns behavior to reference implementation for sums of unparseable strings,
as well as for between comparisons of > and >=, and for comparison operators
with arrays of more than three values.
When presented with an array parameter, jsonlogic.com uses the first
value for + and * expressions.
@magnarn magnarn deployed to snapshot March 17, 2025 12:45 — with GitHub Actions Active
@jamsesso jamsesso self-assigned this Mar 17, 2025
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