Schemas / I/O

rig.calendar.weekly

v0.31.0 · draft 3 fields 3 required

Fields

FieldTypeMeaning
days array<boolean>7 items required Active weekdays; index 0 = Sunday ... 6 = Saturday
startMinutes integer0 – 1439 required Window start, 0-1439
endMinutes integer0 – 1439 required Window end, 0-1439. When endMinutesstartMinutes, the window crosses midnight.

Weekly opening hours. Format when present.

Times are wall-clock minutes since local midnight in the document's timeZone (see rig.document). Do not encode iCalendar RRULE strings.

What the window enables is not this schema - compose or mute a rig.audio.bus, or point a rig.mod.trigger gate at this entity.

A second daily window (lunch close, then evening) is another entity with its own weekly. Do not invent a windows array here.

A repeating event (Tuesday talk at 14:00) is rig.calendar.event + rig.calendar.recurrence, not a second meaning of this schema.

JSON Schema

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

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://rig.works/schemas/rig.calendar.weekly.schema.json",
  "title": "rig.calendar.weekly",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "days": {
      "type": "array",
      "items": {
        "type": "boolean"
      },
      "minItems": 7,
      "maxItems": 7
    },
    "startMinutes": {
      "type": "integer",
      "minimum": 0,
      "maximum": 1439
    },
    "endMinutes": {
      "type": "integer",
      "minimum": 0,
      "maximum": 1439
    }
  },
  "required": [
    "days",
    "startMinutes",
    "endMinutes"
  ]
}

Seen in

calendar-event.json