{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aisle-wedding/json-schema/aisle-wedding-guest-access-schema.json",
  "title": "GuestAccess",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aisle-wedding-guest-access-api-openapi.yml#/components/schemas/GuestAccess",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "id": {
      "$ref": "#/$defs/GuestAccessId"
    },
    "name": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 120
    },
    "guest_ids": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/GuestId"
      }
    },
    "expires_at": {
      "oneOf": [
        {
          "$ref": "#/$defs/Timestamp"
        },
        {
          "type": "null"
        }
      ]
    },
    "revoked_at": {
      "oneOf": [
        {
          "$ref": "#/$defs/Timestamp"
        },
        {
          "type": "null"
        }
      ]
    },
    "created_at": {
      "$ref": "#/$defs/Timestamp"
    },
    "updated_at": {
      "$ref": "#/$defs/Timestamp"
    }
  },
  "required": [
    "id",
    "name",
    "guest_ids",
    "expires_at",
    "revoked_at",
    "created_at",
    "updated_at"
  ],
  "$defs": {
    "GuestAccessId": {
      "type": "string",
      "pattern": "^gac_.+$"
    },
    "GuestId": {
      "type": "string",
      "pattern": "^gst_.+$"
    },
    "Timestamp": {
      "type": "string",
      "format": "date-time",
      "description": "An RFC 3339 UTC timestamp with milliseconds."
    }
  }
}