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_idstringrequired · pattern: ^[a-zA-Z0-9_-]{3,64}$
- ·event_typestringrequired · enum: [click, view, purchase]
- ·timestampintegerrequired · min: 0
- ·amountnumbermin: 0
Glossary · 2 definitions
- user_id— Unique user identifier
- amount— Monetary value in USD(must be non-negative)
Metrics · 1 formula
- total_revenue= sum(amount) where event_type = 'purchase'