Webex · Schema

WorkingHoursDTO

Working hours

CallingCollaborationCommunicationEnterpriseMessagingVideo Conferencing

Properties

Name Type Description
name string
days array
startTime string
endTime string
View JSON Schema on GitHub

JSON Schema

webex-workinghoursdto-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/WorkingHoursDTO",
  "title": "WorkingHoursDTO",
  "type": "object",
  "description": "Working hours",
  "example": [
    {
      "name": "Happy Hours",
      "days": [
        "MON",
        "TUE",
        "WED",
        "THU",
        "FRI"
      ],
      "startTime": "17:00",
      "endTime": "18:59"
    },
    {
      "name": "Open Hours",
      "days": [
        "MON",
        "TUE",
        "WED",
        "THU",
        "FRI",
        "SAT",
        "SUN"
      ],
      "startTime": "19:00",
      "endTime": "23:59"
    }
  ],
  "properties": {
    "name": {
      "type": "string",
      "maxLength": 80,
      "minLength": 1,
      "pattern": "^[a-zA-Z0-9_-]+(\\s?[a-zA-Z0-9_-]+)*$"
    },
    "days": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "SUN",
          "MON",
          "TUE",
          "WED",
          "THU",
          "FRI",
          "SAT"
        ]
      },
      "minItems": 1
    },
    "startTime": {
      "type": "string"
    },
    "endTime": {
      "type": "string"
    }
  },
  "required": [
    "days",
    "name"
  ]
}