Skip to content

rule for array itemΒ #70

@nlac

Description

@nlac

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions