Playground

Test a contract YAML against a sample JSON event — no ingestion, no storage

Result

🧪

Enter a contract and event, then click Validate

Ontology · 4 fields

  • ·
    user_idstring
    required · pattern: ^[a-zA-Z0-9_-]{3,64}$
  • ·
    event_typestring
    required · enum: [click, view, purchase]
  • ·
    timestampinteger
    required · min: 0
  • ·
    amountnumber
    min: 0

Glossary · 2 definitions

  • user_idUnique user identifier
  • amountMonetary value in USD(must be non-negative)

Metrics · 1 formula

  • total_revenue= sum(amount) where event_type = 'purchase'