{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/folio/json-schema/folio-feature-configs-schema.json",
  "title": "featureConfigs",
  "description": "Feature configs response per tenant",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/folio-config-api-openapi.yml#/components/schemas/featureConfigs",
  "additionalProperties": false,
  "properties": {
    "features": {
      "description": "Configured features per tenant",
      "items": {
        "$ref": "#/$defs/featureConfig"
      },
      "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": [
    "features",
    "totalRecords"
  ],
  "type": "object",
  "$defs": {
    "featureConfig": {
      "additionalProperties": false,
      "description": "Feature config request value",
      "properties": {
        "feature": {
          "$ref": "#/$defs/tenantConfiguredFeature"
        },
        "enabled": {
          "description": "Action - enable or disable option",
          "type": "boolean"
        }
      },
      "required": [
        "enabled",
        "feature"
      ],
      "type": "object"
    },
    "tenantConfiguredFeature": {
      "description": "The feature name.",
      "enum": [
        "search.all.fields",
        "browse.contributors",
        "browse.subjects",
        "browse.classifications",
        "browse.call-numbers"
      ],
      "type": "string"
    }
  }
}