{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/folio/json-schema/folio-browse-config-collection-schema.json",
  "title": "browseConfigCollection",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/folio-config-api-openapi.yml#/components/schemas/browseConfigCollection",
  "properties": {
    "configs": {
      "items": {
        "$ref": "#/$defs/browseConfig"
      },
      "type": "array",
      "x-field-extra-annotation": "@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL)"
    },
    "totalRecords": {
      "type": "integer"
    }
  },
  "type": "object",
  "$defs": {
    "browseConfig": {
      "properties": {
        "id": {
          "$ref": "#/$defs/browseOptionType"
        },
        "shelvingAlgorithm": {
          "$ref": "#/$defs/shelvingOrderAlgorithmType"
        },
        "typeIds": {
          "description": "Type IDs that should be used by the option",
          "items": {
            "description": "Type ID",
            "format": "uuid",
            "type": "string"
          },
          "type": "array"
        }
      },
      "required": [
        "id",
        "shelvingAlgorithm"
      ],
      "type": "object"
    },
    "browseOptionType": {
      "description": "Browse option type",
      "enum": [
        "all",
        "lc",
        "dewey",
        "nlm",
        "sudoc",
        "other"
      ],
      "type": "string"
    },
    "shelvingOrderAlgorithmType": {
      "description": "Shelving order algorithm",
      "enum": [
        "lc",
        "dewey",
        "nlm",
        "sudoc",
        "default"
      ],
      "type": "string"
    }
  }
}