$.tools.rule_builder

Validation Rule Builder

Describe a data check with a form. Get a readable rule you can copy.

Build a rule

Runs in your browser. Nothing you type is sent anywhere.

Use dots for nested fields.

Not needed for "is negative", "is empty" or "is missing". For "matches pattern", enter a regular expression.

Your rule

Fill in the form and press Build rule, or press Load example. Links from the Field Finder and the Schema Diff fill in the field for you.

This is a neutral, readable format for sharing and review. Adapt it to the tool your pipeline uses.

$.how

How it works

Every check has the same four parts. Field is where to look. Condition is what counts as a problem. Value is what to compare against, if needed. Action is what should happen: alert someone, drop the record, or mask the value.

The builder checks that the parts fit together: a path is present, conditions that compare get a value, "greater than", "less than" and "length over" get a number, and a pattern is a valid regular expression. Then it writes the rule as a one-line sentence and a structured snippet.

{ "rule": "Alert when order_total is negative", "field": "order_total", "condition": "is_negative", "value": null, "action": "alert" }
$.limits

What this tool does not do

  • It doesn't run the rule against your data. It writes the rule down clearly.
  • The output is a neutral format. It isn't tied to, or guaranteed to import into, any specific product.
  • One rule per build. Build again for the next check.
$.faq

Questions

Why a form instead of free text?

A form makes every rule complete and consistent: a field, a condition, a value and an action. Nothing is left to interpretation.

What's the difference between "is empty" and "is missing"?

"Is missing" means the field isn't in the event at all. "Is empty" means the field is there but holds an empty string, array or object.

Can I use the snippet in my pipeline?

It's written to be read and adapted. Map the fields to the format your tooling expects.

Is anything saved?

No. The builder keeps nothing after you leave the page.

$.next

Find the fields worth checking

Not sure which fields need rules? Scan an event or compare two versions first.