{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/folio/json-schema/folio-language-configs-schema.json",
  "title": "languageConfigs",
  "description": "Language config",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/folio-config-api-openapi.yml#/components/schemas/languageConfigs",
  "additionalProperties": false,
  "properties": {
    "languageConfigs": {
      "description": "Configured languages for a tenant",
      "items": {
        "$ref": "#/$defs/languageConfig"
      },
      "type": "array",
      "x-field-extra-annotation": "@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL)"
    },
    "totalRecords": {
      "description": "Total records that matches the query.",
      "minimum": 0,
      "type": "integer"
    }
  },
  "required": [
    "languageConfigs",
    "totalRecords"
  ],
  "type": "object",
  "$defs": {
    "languageConfig": {
      "additionalProperties": false,
      "description": "Language config",
      "properties": {
        "code": {
          "description": "An ISO-639-2/B compatible language code.",
          "pattern": "[a-zA-Z]{3}",
          "type": "string"
        },
        "languageAnalyzer": {
          "description": "Custom elasticsearch analyzer for language.",
          "type": "string"
        }
      },
      "required": [
        "code"
      ],
      "type": "object"
    }
  }
}