{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/folio/json-schema/folio-subject-browse-result-schema.json",
  "title": "subjectBrowseResult",
  "description": "Subject browse search response",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/folio-browse-api-openapi.yml#/components/schemas/subjectBrowseResult",
  "properties": {
    "totalRecords": {
      "description": "Amount of items to display",
      "type": "integer"
    },
    "prev": {
      "description": "Previous value for browsing backward",
      "type": "string"
    },
    "next": {
      "description": "Next value for browsing forward",
      "type": "string"
    },
    "items": {
      "description": "List of subject browse items",
      "items": {
        "$ref": "#/$defs/subjectBrowseItem"
      },
      "type": "array",
      "x-field-extra-annotation": "@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL)"
    }
  },
  "type": "object",
  "$defs": {
    "subjectBrowseItem": {
      "description": "Subject browse search result item",
      "properties": {
        "value": {
          "description": "Subject value to be used for browsing",
          "type": "string"
        },
        "isAnchor": {
          "description": "Marks if current value is anchor or not",
          "type": "boolean"
        },
        "totalRecords": {
          "description": "Amount of records for the subject browse item",
          "type": "integer"
        },
        "authorityId": {
          "description": "ID of authority record that controls the subject",
          "type": "string"
        },
        "sourceId": {
          "description": "ID of subject source",
          "type": "string"
        },
        "typeId": {
          "description": "ID of subject type",
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}