{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://getcaute.com/card-format/1/tags.schema.json",
  "title": "tags.json",
  "description": "Each confirmed tag the person could see, with the cards and notes it is on.",
  "$defs": {
    "datetime": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}[ T]\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?([+-]\\d{2}:\\d{2}|Z)$",
      "description": "A date and time with its offset (RFC 3339), written with a space between date and time: 2026-10-14 03:04:05.123456+00:00. Fractional seconds are left out when they are zero."
    },
    "uuid": {
      "type": "string",
      "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
    }
  },
  "type": "array",
  "items": {
    "type": "object",
    "required": [
      "path",
      "items"
    ],
    "additionalProperties": false,
    "properties": {
      "path": {
        "type": "string",
        "description": "Lowercase, /-separated: clients/acme/contracts."
      },
      "items": {
        "type": "array",
        "items": {
          "$ref": "#/$defs/uuid"
        },
        "minItems": 1
      }
    }
  }
}
