Properties
| Name | Type | Description |
|---|---|---|
| type | string | Type of time restriction. |
| restrictions | array | Time restriction definitions. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/TimeRestriction",
"title": "TimeRestriction",
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"time-of-day",
"weekday-and-time-of-day"
],
"description": "Type of time restriction."
},
"restrictions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"startDay": {
"type": "string",
"description": "Start day of the week."
},
"startHour": {
"type": "integer",
"description": "Start hour."
},
"startMin": {
"type": "integer",
"description": "Start minute."
},
"endDay": {
"type": "string",
"description": "End day of the week."
},
"endHour": {
"type": "integer",
"description": "End hour."
},
"endMin": {
"type": "integer",
"description": "End minute."
}
}
},
"description": "Time restriction definitions."
}
}
}