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

rule for array item #70

Open
nlac opened this issue Aug 15, 2019 · 0 comments
Open

rule for array item #70

nlac opened this issue Aug 15, 2019 · 0 comments

Comments

@nlac
Copy link

nlac commented Aug 15, 2019

Hello, i'm wondering what rule could do the following, or even is it possible. Given a schema describing an array with any number of items (user can add items on-the-fly as usual):

{
  "type": "array",
  "items": {
    "doyoulike": {
      "type": "boolean"
    },
    "howmuch": {
      "type": "number"
    }
  }
}

and i want a rule that hides (or disables) the "howmuch" prop of ANY item where the "doyoulike" prop gets unchecked.
It maybe related to RXNT/json-rules-engine-simplified#29 that have also an upcoming story but studying that i wasn't really enlighted if doing the above is even possible right now.

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