{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/elastic/json-schema/elastic-types-query-dsl-field-and-format-schema.json",
  "title": "_types.query_dsl.FieldAndFormat",
  "description": "A reference to a field with formatting instructions on how to return the value",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/elastic-eql-api-openapi.yml#/components/schemas/_types.query_dsl.FieldAndFormat",
  "type": "object",
  "properties": {
    "field": {
      "description": "A wildcard pattern. The request returns values for field names matching this pattern.",
      "allOf": [
        {
          "$ref": "#/$defs/_types.Field"
        }
      ]
    },
    "format": {
      "description": "The format in which the values are returned.",
      "type": "string"
    },
    "include_unmapped": {
      "type": "boolean"
    }
  },
  "required": [
    "field"
  ],
  "$defs": {
    "_types.Field": {
      "description": "Path to field or array of paths. Some API's support wildcards in the path to select multiple fields.",
      "type": "string"
    }
  }
}