{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/elastic/json-schema/elastic-global-field-caps-field-capability-schema.json",
  "title": "_global.field_caps.FieldCapability",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/elastic-search-api-openapi.yml#/components/schemas/_global.field_caps.FieldCapability",
  "type": "object",
  "properties": {
    "aggregatable": {
      "description": "Whether this field can be aggregated on all indices.",
      "type": "boolean"
    },
    "indices": {
      "description": "The list of indices where this field has the same type family, or null if all indices have the same type family for the field.",
      "allOf": [
        {
          "$ref": "#/$defs/_types.Indices"
        }
      ]
    },
    "meta": {
      "description": "Merged metadata across all indices as a map of string keys to arrays of values. A value length of 1 indicates that all indices had the same value for this key, while a length of 2 or more indicates that not all indices had the same value for this key.",
      "allOf": [
        {
          "$ref": "#/$defs/_types.Metadata"
        }
      ]
    },
    "non_aggregatable_indices": {
      "description": "The list of indices where this field is not aggregatable, or null if all indices have the same definition for the field.",
      "allOf": [
        {
          "$ref": "#/$defs/_types.Indices"
        }
      ]
    },
    "non_searchable_indices": {
      "description": "The list of indices where this field is not searchable, or null if all indices have the same definition for the field.",
      "allOf": [
        {
          "$ref": "#/$defs/_types.Indices"
        }
      ]
    },
    "searchable": {
      "description": "Whether this field is indexed for search on all indices.",
      "type": "boolean"
    },
    "type": {
      "type": "string"
    },
    "metadata_field": {
      "description": "Whether this field is registered as a metadata field.",
      "type": "boolean"
    },
    "time_series_dimension": {
      "description": "Whether this field is used as a time series dimension.",
      "x-state": "Technical preview; Added in 8.0.0",
      "type": "boolean"
    },
    "time_series_metric": {
      "description": "Contains metric type if this fields is used as a time series\nmetrics, absent if the field is not used as metric.",
      "x-state": "Technical preview; Added in 8.0.0",
      "allOf": [
        {
          "$ref": "#/$defs/_types.mapping.TimeSeriesMetricType"
        }
      ]
    },
    "non_dimension_indices": {
      "description": "If this list is present in response then some indices have the\nfield marked as a dimension and other indices, the ones in this list, do not.",
      "x-state": "Technical preview; Added in 8.0.0",
      "type": "array",
      "items": {
        "$ref": "#/$defs/_types.IndexName"
      }
    },
    "metric_conflicts_indices": {
      "description": "The list of indices where this field is present if these indices\ndon’t have the same `time_series_metric` value for this field.",
      "x-state": "Technical preview; Added in 8.0.0",
      "type": "array",
      "items": {
        "$ref": "#/$defs/_types.IndexName"
      }
    }
  },
  "required": [
    "aggregatable",
    "searchable",
    "type"
  ],
  "$defs": {
    "_types.IndexName": {
      "type": "string"
    },
    "_types.Indices": {
      "oneOf": [
        {
          "$ref": "#/$defs/_types.IndexName"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/_types.IndexName"
          }
        }
      ]
    },
    "_types.Metadata": {
      "type": "object",
      "additionalProperties": {
        "type": "object"
      }
    },
    "_types.mapping.TimeSeriesMetricType": {
      "type": "string",
      "enum": [
        "gauge",
        "counter",
        "summary",
        "histogram",
        "position"
      ]
    }
  }
}