{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Appointment example",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "id",
    "startsAt",
    "endsAt",
    "status"
  ],
  "properties": {
    "id": {
      "type": "string",
      "minLength": 1
    },
    "startsAt": {
      "type": "string",
      "format": "date-time"
    },
    "endsAt": {
      "type": "string",
      "format": "date-time"
    },
    "status": {
      "enum": [
        "scheduled",
        "completed",
        "cancelled"
      ]
    }
  }
}