SURI API — component schemas

JSON Schema extracted from the components.schemas block of Stanford University Libraries' first-party OpenAPI for the SURI API. Institution-operated: every server in the source contract is under stanford.edu.

UniversityHigher EducationEducationResearchUnited StatesCaliforniaPrivate Research UniversityAssociation of American UniversitiesResearch RepositoryCourse CatalogIdentity FederationLibraryDigital RepositoryArtificial IntelligenceIIIF
View JSON Schema on GitHub

JSON Schema

stanford-suri-api-schemas.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/stanford/main/json-schema/stanford-suri-api-schemas.json",
  "title": "SURI API \u2014 component schemas",
  "description": "JSON Schema extracted from the components.schemas block of Stanford University Libraries' first-party OpenAPI for the SURI API. Institution-operated: every server in the source contract is under stanford.edu.",
  "x-operator": "institution",
  "x-generated": "2026-08-19",
  "x-method": "derived",
  "x-source": "https://raw.githubusercontent.com/sul-dlss/suri-rails/main/openapi.yml",
  "$defs": {
    "BareDruid": {
      "description": "Digital Repository Unique Identifier (DRUID) without `druid:` prefix",
      "type": "string",
      "pattern": "^[b-df-hjkmnp-tv-z]{2}[0-9]{3}[b-df-hjkmnp-tv-z]{2}[0-9]{4}$",
      "example": "bc123df4567"
    },
    "ErrorResponse": {
      "type": "object",
      "properties": {
        "errors": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/Error"
          }
        }
      }
    },
    "Error": {
      "type": "object",
      "properties": {
        "title": {
          "type": "string",
          "description": "a short, human-readable summary of the problem that SHOULD NOT change from occurrence to occurrence of the problem.",
          "example": "Invalid Attribute"
        },
        "detail": {
          "type": "string",
          "description": "a human-readable explanation specific to this occurrence of the problem.",
          "example": "Title must contain at least three characters."
        },
        "source": {
          "type": "object",
          "properties": {
            "pointer": {
              "type": "string",
              "example": "/data/attributes/title"
            }
          }
        }
      }
    },
    "Identifier": {
      "description": "an ID record stored in the database",
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "example": 123
        },
        "identifier": {
          "$ref": "#/components/schemas/BareDruid"
        },
        "created_by": {
          "type": "string",
          "nullable": true
        },
        "created_at": {
          "type": "string"
        },
        "updated_at": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "identifier",
        "created_at",
        "updated_at"
      ]
    }
  }
}