{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-exchange/json-schema/microsoft-exchange-time-constraint-schema.json",
  "title": "TimeConstraint",
  "description": "Restricts meeting time suggestions to certain time periods",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-exchange-scheduling-api-openapi.yml#/components/schemas/TimeConstraint",
  "type": "object",
  "properties": {
    "activityDomain": {
      "type": "string",
      "enum": [
        "work",
        "personal",
        "unrestricted",
        "unknown"
      ]
    },
    "timeSlots": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/TimeSlot"
      }
    }
  },
  "$defs": {
    "DateTimeTimeZone": {
      "type": "object",
      "description": "Describes a date, time, and time zone",
      "properties": {
        "dateTime": {
          "type": "string",
          "description": "A date and time in ISO 8601 format"
        },
        "timeZone": {
          "type": "string",
          "description": "A time zone name (e.g. Pacific Standard Time)"
        }
      }
    },
    "TimeSlot": {
      "type": "object",
      "description": "A time period",
      "properties": {
        "start": {
          "$ref": "#/$defs/DateTimeTimeZone"
        },
        "end": {
          "$ref": "#/$defs/DateTimeTimeZone"
        }
      }
    }
  }
}