{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/folio/main/json-schema/folio-patron-pin-with-id-schema.json",
  "title": "Patron Pin Schema",
  "description": "Patron Pin",
  "x-generated": "2026-10-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/folio-edge-users-openapi.yml#/components/schemas/patron-pin-with-id",
  "type": "object",
  "properties": {
    "id": {
      "description": "UUID of the user",
      "type": "string",
      "$ref": "#/$defs/uuid"
    },
    "pin": {
      "description": "PIN of the user",
      "type": "string"
    }
  },
  "required": [
    "id",
    "pin"
  ],
  "$defs": {
    "uuid": {
      "description": "UUID",
      "type": "string",
      "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
    }
  }
}