RXNT / react-jsonschema-form-conditionals

react-jsonschema-form-conditionals

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support boolean logic on a field comparison level

mavarazy opened this issue · comments

In order to express complicated logic (like ranges or value in), we need to extend used predicate library, by adding support for basic boolean operations - NOT, AND and OR.

let rules = {
  telephone: {
      action: "remove",
      when: {
        age: {
          not: {
              greater: 5,
              less : 70,
          }
        }
      }
  }
}