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

Can't use "max" on array stored at "var" #19

Open
l4cr0ss opened this issue Jun 3, 2019 · 1 comment
Open

Can't use "max" on array stored at "var" #19

l4cr0ss opened this issue Jun 3, 2019 · 1 comment

Comments

@l4cr0ss
Copy link

l4cr0ss commented Jun 3, 2019

This doesn't give the expected result:

let logic = {
  "max": {
    "var": "myarray"
  }
}

let data = {
  "myarray": [
    1,
    2,
    3
  ]
}

JSONLogic.apply(logic,data)
result: `null`

image

@l4cr0ss l4cr0ss changed the title Can't use "max" on data stored at "var" Can't use "max" on array stored at "var" Jun 3, 2019
@l4cr0ss
Copy link
Author

l4cr0ss commented Jun 3, 2019

This example is working properly in at least the ruby bindings

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

1 participant