ing.opn.availability.defs

Repository @opn.ing did:plc:fd7yovynbzbli5i7m6tu76cl namespace authority
Details · defs
Kinddefs
Authorityavailability.opn.ing
Commit rev3n2uk54zwxo2l
Indexed
cid bafyreidwpplc3ifx45cff5bl7q6cs55ivpxevhf2b6he4qzpvqn5mpvxpi

Checks

Valid Lint pass
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "override": {
      "description": "A date whose hours differ from the week's.",
      "properties": {
        "date": {
          "description": "A calendar date, YYYY-MM-DD.",
          "maxLength": 10,
          "minLength": 10,
          "type": "string"
        },
        "ranges": {
          "description": "Open ranges on this date in place of the week's. Empty means unavailable all day.",
          "items": {
            "ref": "#timeRange",
            "type": "ref"
          },
          "maxLength": 24,
          "type": "array"
        }
      },
      "required": [
        "date",
        "ranges"
      ],
      "type": "object"
    },
    "slot": {
      "description": "A time someone can book.",
      "properties": {
        "end": {
          "format": "datetime",
          "type": "string"
        },
        "start": {
          "format": "datetime",
          "type": "string"
        }
      },
      "required": [
        "start",
        "end"
      ],
      "type": "object"
    },
    "timeRange": {
      "description": "An open range of time within one day.",
      "properties": {
        "end": {
          "description": "A time of day, HH:MM on a 24 hour clock. An end of 24:00 means midnight at the end of the day.",
          "maxLength": 5,
          "minLength": 5,
          "type": "string"
        },
        "start": {
          "description": "A time of day, HH:MM on a 24 hour clock. An end of 24:00 means midnight at the end of the day.",
          "maxLength": 5,
          "minLength": 5,
          "type": "string"
        }
      },
      "required": [
        "start",
        "end"
      ],
      "type": "object"
    },
    "week": {
      "description": "A normal week's open ranges, keyed by day. A day left out or empty is closed.",
      "properties": {
        "friday": {
          "items": {
            "ref": "#timeRange",
            "type": "ref"
          },
          "maxLength": 24,
          "type": "array"
        },
        "monday": {
          "items": {
            "ref": "#timeRange",
            "type": "ref"
          },
          "maxLength": 24,
          "type": "array"
        },
        "saturday": {
          "items": {
            "ref": "#timeRange",
            "type": "ref"
          },
          "maxLength": 24,
          "type": "array"
        },
        "sunday": {
          "items": {
            "ref": "#timeRange",
            "type": "ref"
          },
          "maxLength": 24,
          "type": "array"
        },
        "thursday": {
          "items": {
            "ref": "#timeRange",
            "type": "ref"
          },
          "maxLength": 24,
          "type": "array"
        },
        "tuesday": {
          "items": {
            "ref": "#timeRange",
            "type": "ref"
          },
          "maxLength": 24,
          "type": "array"
        },
        "wednesday": {
          "items": {
            "ref": "#timeRange",
            "type": "ref"
          },
          "maxLength": 24,
          "type": "array"
        }
      },
      "type": "object"
    }
  },
  "id": "ing.opn.availability.defs",
  "lexicon": 1
}