{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cherishedbook-com/json-schema/cherishedbook-com-personal-memorial-schema.json",
  "title": "PersonalMemorial",
  "x-generated": "2026-11-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cherishedbook-com-openapi.yml#/components/schemas/PersonalMemorial",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "id",
    "slug",
    "deceased_name",
    "pronouns",
    "title",
    "subtitle",
    "obituary",
    "birth_date",
    "death_date",
    "privacy",
    "content_scope",
    "is_published",
    "contributions_enabled",
    "manual_content_approval",
    "hide_from_search",
    "template_id",
    "resting_place_url",
    "resting_place_notes",
    "moderation",
    "is_deleted",
    "recoverable_until",
    "url",
    "created_at"
  ],
  "properties": {
    "id": {
      "type": "integer"
    },
    "slug": {
      "type": "string"
    },
    "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"
      ]
    },
    "obituary": {
      "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
      ]
    },
    "content_scope": {
      "type": [
        "string",
        "null"
      ]
    },
    "is_published": {
      "type": "boolean"
    },
    "contributions_enabled": {
      "type": "boolean"
    },
    "manual_content_approval": {
      "type": "boolean"
    },
    "hide_from_search": {
      "type": "boolean"
    },
    "template_id": {
      "type": [
        "integer",
        "null"
      ]
    },
    "resting_place_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "resting_place_notes": {
      "type": [
        "string",
        "null"
      ]
    },
    "moderation": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "status",
        "reason",
        "checked_at"
      ],
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "pending",
            "passed",
            "failed"
          ]
        },
        "reason": {
          "type": [
            "string",
            "null"
          ],
          "description": "Why it was refused. Shown to the memorial's owner only."
        },
        "checked_at": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "is_deleted": {
      "type": "boolean"
    },
    "recoverable_until": {
      "type": [
        "string",
        "null"
      ]
    },
    "url": {
      "type": [
        "string",
        "null"
      ],
      "description": "The public page. Null while unpublished or deleted."
    },
    "created_at": {
      "type": [
        "string",
        "null"
      ]
    }
  }
}