{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/brown/json-schema/brown-item-schema.json",
  "title": "Item",
  "description": "A full object record from the item API.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/brown-items-api-openapi.yml#/components/schemas/Item",
  "type": "object",
  "additionalProperties": true,
  "required": [
    "pid"
  ],
  "properties": {
    "pid": {
      "type": "string"
    },
    "object_type": {
      "type": "string"
    },
    "primary_title": {
      "type": "string"
    },
    "uri": {
      "type": "string",
      "format": "uri",
      "description": "Human web view of the object."
    },
    "json_uri": {
      "type": "string",
      "format": "uri",
      "description": "Self link — this item API call."
    },
    "brief": {
      "type": "object",
      "description": "Display-oriented summary block; every value is an array of strings.",
      "additionalProperties": true
    },
    "relations": {
      "$ref": "#/$defs/Relations"
    },
    "api_links": {
      "type": "object",
      "description": "Dereferenceable API URLs for this object's collections and keywords.",
      "additionalProperties": true
    },
    "links": {
      "$ref": "#/$defs/ItemLinks"
    },
    "views_dict": {
      "type": "object",
      "description": "Named viewer and IIIF URLs. Duplicates `links.views`.",
      "additionalProperties": {
        "type": "string",
        "format": "uri"
      }
    },
    "datastreams": {
      "type": "object",
      "description": "Per-datastream mimeType, size, SHA-512 checksum and lastModified.",
      "additionalProperties": true
    }
  },
  "$defs": {
    "CollectionRef": {
      "type": "object",
      "properties": {
        "pid": {
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "db_id": {
          "type": "integer"
        },
        "name": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "tags": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "json_uri": {
          "type": "string",
          "format": "uri",
          "description": "Collection API URL for this collection."
        },
        "uri": {
          "type": "string",
          "format": "uri",
          "description": "Human web view of this collection."
        },
        "thumbnail_url": {
          "type": "string",
          "format": "uri"
        }
      }
    },
    "ItemLinks": {
      "type": "object",
      "properties": {
        "thumbnail": {
          "type": "string",
          "format": "uri"
        },
        "descriptive_datastreams": {
          "type": "object",
          "description": "Descriptive metadata datastreams. `MODS` is the descriptive standard the BDR serves, as XML.",
          "additionalProperties": {
            "type": "string",
            "format": "uri"
          }
        },
        "content_datastreams": {
          "type": "object",
          "description": "Binary content datastreams, e.g. `highres`, `lowres`.",
          "additionalProperties": {
            "type": "string",
            "format": "uri"
          }
        },
        "views": {
          "type": "object",
          "description": "Viewer and IIIF endpoints, including `iiif_image_info` and `iiif_manifest`. These are the documented route from the item API into the IIIF surface; the IIIF paths are not otherwise discoverable, and `/iiif` is disallowed in the repository's robots.txt.",
          "additionalProperties": {
            "type": "string",
            "format": "uri"
          }
        }
      }
    },
    "Relations": {
      "type": "object",
      "description": "Fixed set of relation predicates, each an array. Empty arrays are returned rather than omitted, so a client can rely on every key being present.",
      "properties": {
        "hasAnnotation": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": true
          }
        },
        "hasDerivation": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": true
          }
        },
        "hasDescription": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": true
          }
        },
        "hasTranscript": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": true
          }
        },
        "hasTranslation": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": true
          }
        },
        "hasPart": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": true
          }
        },
        "isDerivationOf": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": true
          }
        },
        "isVersionOf": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": true
          }
        },
        "isTranscriptOf": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": true
          }
        },
        "isTranslationOf": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": true
          }
        },
        "isMemberOf": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": true
          }
        },
        "isPartOf": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": true
          }
        },
        "isMemberOfCollection": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CollectionRef"
          }
        }
      }
    }
  }
}