JSON Schema

ConsentEvent

Properties

typestringrequired
update | hide | show | withdraw | audit | init | regulation_change | consent_request
timestampstringrequired
format: date-time
registrationIdstring
minLength: 1
domainstring
minLength: 1
sourcestring
cmp | privacy_assistant | browser | user
payloadany

Raw Schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://navigator-consent.spec/schemas/event.schema.json",
  "title": "ConsentEvent",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "type",
    "timestamp"
  ],
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "update",
        "hide",
        "show",
        "withdraw",
        "audit",
        "init",
        "regulation_change",
        "consent_request"
      ]
    },
    "timestamp": {
      "type": "string",
      "format": "date-time"
    },
    "registrationId": {
      "type": "string",
      "minLength": 1
    },
    "domain": {
      "type": "string",
      "minLength": 1
    },
    "source": {
      "type": "string",
      "enum": [
        "cmp",
        "privacy_assistant",
        "browser",
        "user"
      ]
    },
    "payload": {}
  }
}