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

Solving vars with the current value changes the behavior #81

Closed
vitaly-eureka-security opened this issue Apr 16, 2024 · 2 comments
Closed

Comments

@vitaly-eureka-security
Copy link

In the playground (https://jsonlogic.com/play.html) and in version < 3.5.1 the following rule

{
      "some": [
        {"var": "A"},
        {"!=": [
          {"var": ".B"},
          {"var": "B"}
        ]}
      ]
}

when applied to

{"A":[{"B":1}], "B":2}

returns true.

However, since this commit 0926afe, the return value is false.

Is it a desired change? If so, how the previous functionality (of comparing the value with the value from external scope) can be achieved.

@diegoholiveira
Copy link
Owner

Not a desirable change. I'll take a look.

@diegoholiveira
Copy link
Owner

Fixed with #82

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

No branches or pull requests

2 participants