Skip to main content
Format validators add semantic checks on top of a column type. EventDBX ships a set of built-ins you can apply via dbx schema field ... --format <name>.

Supported formats

  • email
  • url
  • credit_card
  • country_code
  • iso_8601
  • wgs_84 (latitude/longitude pair)
  • camel_case
  • snake_case
  • kebab_case
  • pascal_case
  • upper_case_snake_case

Applying formats

Add or update a field with a format:
dbx schema field person email --type text --format email --required
dbx schema field person address --type text --format snake_case
Clear a format when it no longer applies:
dbx schema field person email --clear-format
Formats combine with other rules (required/optional, length, range, regex, contains) to tighten validation as schemas mature. Document the rationale and compatibility guarantees in your runbook so future teams understand how to decode historical payloads.