A node of a filter tree: a comparison, an And/Or group of rules, or the negation of a rule. Rules are immutable. A rule's key identifies it in the editor: an edit keeps it, a new rule gets a fresh one.

Hierarchy (View Summary)

Methods

  • The rule in words without its values, for logs and telemetry, e.g. SHIP_COUNTRY is ?

    Returns string

  • The rule in words, values included, e.g. SHIP_COUNTRY is "France"

    Returns string

  • Checks the rule against the input schema, appending a message to errors for each problem

    Parameters

    • schema: Schema
    • Optionalerrors: string[]

    Returns boolean