# ValidationFieldPathElement


[API catalog](/reference/api/) · [Docker Sandboxes overview](/reference/api/sandboxes/latest/) · [Product manual](https://docs.docker.com/ai/sandboxes-api/) · [OpenAPI specification](/reference/api/sandboxes/api.yaml)

API version: v1


> This API is experimental. Features, interfaces,
> and behavior may change.




Schema constraints and annotations:

```json
{
  "allOf": [
    {
      "properties": {
        "fieldName": {
          "description": "`field_name` contains the field name this path element refers to.\nThis can be used to display a human-readable path even if the field number is unknown.",
          "type": [
            "string",
            "null"
          ]
        },
        "fieldNumber": {
          "description": "`field_number` is the field number this path element refers to.",
          "format": "int32",
          "type": [
            "integer",
            "null"
          ]
        },
        "fieldType": {
          "description": "The type of the field that failed validation.",
          "oneOf": [
            {
              "$ref": "#/components/schemas/ValidationFieldType"
            },
            {
              "type": "null"
            }
          ]
        },
        "keyType": {
          "description": "`key_type` specifies the map key type of this field. This value is useful when traversing\nunknown fields through wire data: specifically, it allows handling the differences between\ndifferent integer encodings.",
          "oneOf": [
            {
              "$ref": "#/components/schemas/ValidationFieldType"
            },
            {
              "type": "null"
            }
          ]
        },
        "valueType": {
          "description": "`value_type` specifies map value type of this field. This is useful if you want to display a\nvalue inside unknown fields through wire data.",
          "oneOf": [
            {
              "$ref": "#/components/schemas/ValidationFieldType"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    },
    {
      "oneOf": [
        {
          "properties": {
            "boolKey": {
              "description": "`bool_key` specifies a map key of type bool.",
              "type": "boolean"
            }
          },
          "required": [
            "boolKey"
          ],
          "title": "bool_key",
          "type": "object"
        },
        {
          "properties": {
            "index": {
              "description": "`index` specifies a 0-based index into a repeated field.",
              "format": "int64",
              "type": [
                "integer",
                "string"
              ]
            }
          },
          "required": [
            "index"
          ],
          "title": "index",
          "type": "object"
        },
        {
          "properties": {
            "intKey": {
              "description": "`int_key` specifies a map key of type int32, int64, sint32, sint64, sfixed32 or sfixed64.",
              "format": "int64",
              "type": [
                "integer",
                "string"
              ]
            }
          },
          "required": [
            "intKey"
          ],
          "title": "int_key",
          "type": "object"
        },
        {
          "properties": {
            "stringKey": {
              "description": "`string_key` specifies a map key of type string.",
              "type": "string"
            }
          },
          "required": [
            "stringKey"
          ],
          "title": "string_key",
          "type": "object"
        },
        {
          "properties": {
            "uintKey": {
              "description": "`uint_key` specifies a map key of type uint32, uint64, fixed32 or fixed64.",
              "format": "int64",
              "type": [
                "integer",
                "string"
              ]
            }
          },
          "required": [
            "uintKey"
          ],
          "title": "uint_key",
          "type": "object"
        }
      ]
    }
  ],
  "description": "One field in a validation path. For a map or list, the subscript identifies the selected element.",
  "title": "FieldPathElement",
  "type": "object"
}
```



