{
  "$schema":"https://json-schema.org/draft/2020-12/schema",
  "$id":"https://privycdp.org/reference/synthetic-event.schema.json",
  "title":"Synthetic consent-aware event example; not a PrivyCDP wire contract",
  "type":"object","additionalProperties":false,
  "required":["event_id","type","occurred_at","subject_ref","purpose","consent_version"],
  "properties":{
    "event_id":{"type":"string","minLength":1,"maxLength":100},
    "type":{"const":"fixture.page_view"},
    "occurred_at":{"type":"string","format":"date-time"},
    "subject_ref":{"enum":["fixture-allowed","fixture-withdrawn"]},
    "purpose":{"enum":["analytics","marketing"]},
    "consent_version":{"type":"string","minLength":1,"maxLength":100}
  }
}
