Schemas / I/O

rig.calendar.exception

v0.31.0 · draft 4 fields 1 required

Fields

FieldTypeMeaning
date string required Local calendar day (YYYY-MM-DD) in the document's timeZone
skip bool optional Optional. When true (or absent), this day is dark; when false, force open
startMinutes integer0 – 1439 optional Optional. Special hours start, 0-1439. Only when skip is false
endMinutes integer0 – 1439 optional Optional. Special hours end, 0-1439. Only when skip is false

Single-day exception inside a span. Format when present.

Compose onto the same entity as rig.calendar.span, or one exception entity per date when many holidays exist.

Christmas Eve open 10:00-14:00 is skip false plus minutes. A dark holiday is skip true (or omitted) and no minutes. Times on a skipped day have no meaning - omit them.

JSON Schema

Resolves at https://rig.works/schemas/rig.calendar.exception.schema.jsonraw file.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://rig.works/schemas/rig.calendar.exception.schema.json",
  "title": "rig.calendar.exception",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "date": {
      "type": "string",
      "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
      "description": "ISO 8601 calendar date."
    },
    "skip": {
      "$ref": "./_defs.schema.json#/$defs/bool"
    },
    "startMinutes": {
      "type": "integer",
      "minimum": 0,
      "maximum": 1439
    },
    "endMinutes": {
      "type": "integer",
      "minimum": 0,
      "maximum": 1439
    }
  },
  "required": [
    "date"
  ]
}

Seen in

calendar-event.json