{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$id": "https://artifacts.apis.io/folio/json-schema/folio-accession-request-schema.json",
  "title": "accessionRequest",
  "description": "Accession request body",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/folio-accessions-api-openapi.yml#/components/schemas/accessionRequest",
  "type": "object",
  "properties": {
    "itemBarcode": {
      "description": "Barcode of the item to be accessioned",
      "type": "string"
    },
    "remoteStorageId": {
      "description": "Remote storage id",
      "$ref": "#/$defs/uuid"
    }
  },
  "additionalProperties": false,
  "required": [
    "itemBarcode",
    "remoteStorageId"
  ],
  "$defs": {
    "uuid": {
      "$schema": "http://json-schema.org/draft-04/schema#",
      "description": "Regexp pattern for UUID validation",
      "type": "string",
      "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[1-5][a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$"
    }
  }
}