{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/openarchieven-nl/json-schema/openarchieven-nl-transcription-response-schema.json",
  "title": "TranscriptionResponse",
  "description": "Response returned by `/transcriptions/show.json`.",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/openarchieven-nl-openapi.yaml#/components/schemas/TranscriptionResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Page identifier (matches the request `id`)."
    },
    "uri": {
      "type": "string",
      "format": "uri"
    },
    "source_archive": {
      "$ref": "#/$defs/TranscriptionSourceArchive"
    },
    "archive_number": {
      "$ref": "#/$defs/TranscriptionArchiveNumber"
    },
    "inventory_number": {
      "$ref": "#/$defs/TranscriptionInventoryNumber"
    },
    "page": {
      "type": "string",
      "description": "Page number with leading zeros stripped."
    },
    "source_url": {
      "type": "string",
      "format": "uri",
      "description": "Direct link to the scan or transcription on the source archive's website."
    },
    "thumb_url": {
      "type": "string",
      "format": "uri",
      "description": "Thumbnail image URL, when available."
    },
    "project": {
      "type": "string",
      "description": "Source project that produced the transcription, e.g. `transkribus`, `globalise`, `mibudera`.\n"
    },
    "transcript": {
      "type": "string",
      "description": "Plain-text transcript of the page."
    }
  },
  "required": [
    "id",
    "uri",
    "source_archive",
    "transcript"
  ],
  "$defs": {
    "TranscriptionArchiveNumber": {
      "type": "object",
      "description": "Archive number (archieftoegang) information for a transcription.",
      "properties": {
        "nr": {
          "type": "string",
          "description": "Archive number as used by the source institution."
        },
        "title": {
          "type": "string",
          "description": "Title of the archive."
        },
        "url": {
          "type": "string",
          "format": "uri",
          "description": "External URL describing the archive on the source institution's website."
        }
      },
      "required": [
        "nr"
      ]
    },
    "TranscriptionInventoryNumber": {
      "type": "object",
      "description": "Inventory number information for a transcription.",
      "properties": {
        "nr": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "url": {
          "type": "string",
          "format": "uri"
        }
      },
      "required": [
        "nr"
      ]
    },
    "TranscriptionSourceArchive": {
      "type": "object",
      "description": "Source archive holding the transcribed page.",
      "properties": {
        "isil": {
          "type": "string",
          "description": "International Standard Identifier for Libraries (ISIL)."
        },
        "archive_code": {
          "type": [
            "string",
            "null"
          ],
          "description": "openarch archive code (matches the codes used elsewhere in this API)."
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "Localised name of the source archive."
        }
      },
      "required": [
        "isil"
      ]
    }
  }
}