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