{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aura-historia-com/json-schema/aura-historia-com-party-data-schema.json",
  "title": "PartyData",
  "description": "Party representation returned after admin creation, update, and detail routes.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aura-historia-com-party-api-openapi.yml#/components/schemas/PartyData",
  "type": "object",
  "required": [
    "partyId",
    "partySlugId",
    "name",
    "contact",
    "created",
    "updated"
  ],
  "properties": {
    "partyId": {
      "type": "string",
      "description": "Stable Party identifier."
    },
    "partySlugId": {
      "type": "string",
      "description": "Immutable Party slug identifier."
    },
    "name": {
      "type": "string",
      "maxLength": 255,
      "description": "Party name."
    },
    "contact": {
      "$ref": "#/$defs/PartyContactData"
    },
    "created": {
      "type": "string",
      "format": "date-time",
      "description": "When the Party was created."
    },
    "updated": {
      "type": "string",
      "format": "date-time",
      "description": "When the Party was last updated."
    }
  },
  "$defs": {
    "PartyContactData": {
      "type": "object",
      "description": "Optional Party contact summary. Absent contact members are omitted.",
      "properties": {
        "phone": {
          "type": "string",
          "description": "Party phone number, omitted when absent."
        },
        "email": {
          "type": "string",
          "format": "email",
          "description": "Party email address, omitted when absent."
        }
      }
    }
  }
}