{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/discovergy/json-schema/discovergy-calendar-schema.json",
  "title": "Calendar",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/discovergy-openapi.json#/components/schemas/Calendar",
  "type": "object",
  "properties": {
    "uuid": {
      "type": "string",
      "description": "Identifier of the calendar. Can be used in the api and on the calendar app"
    },
    "isWeeklyCalendar": {
      "type": "boolean",
      "description": "Does the calendar represent a normal weekly calendar, that is the same every week. If true represents a weekly calendar. If false represents an exact date calendar"
    },
    "address": {
      "$ref": "#/$defs/Address"
    },
    "customerName": {
      "type": "string",
      "description": "Name of the customer for this calendar"
    },
    "minWorkHour": {
      "type": "integer",
      "description": "Minimum hour an availability may be created. Inclusive",
      "format": "int32"
    },
    "maxWorkHour": {
      "type": "integer",
      "description": "Maximum hour an availability may be created. Exclusive",
      "format": "int32"
    },
    "minWorkDay": {
      "type": "string",
      "description": "English name of the first weekday on which an availability may be created. Inclusive"
    },
    "maxWorkDay": {
      "type": "string",
      "description": "English name of the last weekday on which an availability may be created. Inclusive"
    },
    "minRecommendedHour": {
      "type": "integer",
      "description": "Minimum hour of recommended technician availability. Inclusive",
      "format": "int32"
    },
    "maxRecommendedHour": {
      "type": "integer",
      "description": "Maximum hour of recommended technician availability. Exclusive",
      "format": "int32"
    },
    "minIntervalDurationMinutes": {
      "type": "integer",
      "description": "Minimum duration of availability interval in minutes",
      "format": "int32"
    }
  },
  "$defs": {
    "Address": {
      "type": "object",
      "properties": {
        "street": {
          "type": "string",
          "description": "Name of the street where the meter is located"
        },
        "streetNumber": {
          "type": "string",
          "description": "Number in the street where the meter is located"
        },
        "zip": {
          "type": "string",
          "description": "Postal code where the meter is located"
        },
        "city": {
          "type": "string",
          "description": "City/town where the meter is located"
        },
        "country": {
          "type": "string",
          "description": "Country code where the meter is located"
        }
      }
    }
  }
}