{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cherishedbook-com/json-schema/cherishedbook-com-memorial-schema.json",
  "title": "Memorial",
  "x-generated": "2026-11-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cherishedbook-com-openapi.yml#/components/schemas/Memorial",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "id",
    "slug",
    "status",
    "deceased_name",
    "pronouns",
    "title",
    "subtitle",
    "description",
    "birth_date",
    "death_date",
    "privacy",
    "is_premium",
    "web_url",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "id": {
      "type": [
        "integer",
        "null"
      ]
    },
    "slug": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "awaiting_family",
        "in_progress",
        "live"
      ]
    },
    "deceased_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "pronouns": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "she",
        "he",
        "they",
        "name",
        null
      ],
      "description": "How the family refers to them. Null: use their name and they/them, never guess."
    },
    "title": {
      "type": [
        "string",
        "null"
      ]
    },
    "subtitle": {
      "type": [
        "string",
        "null"
      ]
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "birth_date": {
      "type": [
        "string",
        "null"
      ],
      "format": "date"
    },
    "death_date": {
      "type": [
        "string",
        "null"
      ],
      "format": "date"
    },
    "privacy": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "public",
        "restricted",
        "private",
        "closed",
        null
      ]
    },
    "is_premium": {
      "type": "boolean"
    },
    "web_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "created_at": {
      "type": [
        "string",
        "null"
      ]
    },
    "updated_at": {
      "type": [
        "string",
        "null"
      ]
    }
  }
}