{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "foundation-snapshot.schema.json",
  "title": "FoundationSnapshot",
  "type": "object",
  "required": ["type", "sourceId", "payload"],
  "properties": {
    "type": {
      "type": "string",
      "enum": ["assignmentFilter", "roleScopeTag", "notificationMessageTemplate"]
    },
    "sourceId": { "type": "string" },
    "displayName": { "type": "string" },
    "payload": { "type": "object" },
    "metadata": { "type": ["object", "null"] }
  },
  "additionalProperties": false
}
