Skip to content

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

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

Merged
merged 4 commits into from
May 2, 2025

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.
@jamsesso jamsesso self-assigned this Mar 17, 2025
Also fixes a bug in the jsonPath calculation for and/or.
@jamsesso
Copy link
Owner

jamsesso commented May 1, 2025

Can you bump the version to 1.1.0-SNAPSHOT for me? When merged, it will publish as 1.1.0.

@magnarn magnarn deployed to snapshot May 2, 2025 14:20 — with GitHub Actions Active
@jamsesso jamsesso merged commit 311ca62 into jamsesso:main May 2, 2025
1 check passed
@jamsesso
Copy link
Owner

jamsesso commented May 2, 2025

1.1.0 was published to maven central. Thanks for the contribution :)

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