{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://rig.works/schemas/rig.calendar.attendee.schema.json",
  "title": "rig.calendar.attendee",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "event": {
      "$ref": "./_defs.schema.json#/$defs/entity"
    },
    "person": {
      "$ref": "./_defs.schema.json#/$defs/entity"
    },
    "role": {
      "type": "string",
      "enum": [
        "chair",
        "required",
        "optional",
        "inform"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "needs-action",
        "accepted",
        "declined",
        "tentative"
      ]
    }
  },
  "required": [
    "event",
    "person"
  ]
}
