# ValidationViolation


[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
{
  "description": "A validation failure, with the affected field, rule, and a human-readable message.",
  "properties": {
    "field": {
      "description": "The field that failed validation, including its parent fields.",
      "oneOf": [
        {
          "$ref": "#/components/schemas/ValidationFieldPath"
        },
        {
          "type": "null"
        }
      ]
    },
    "forKey": {
      "description": "`for_key` indicates whether the violation was caused by a map key, rather than a value.",
      "type": [
        "boolean",
        "null"
      ]
    },
    "message": {
      "description": "`message` is a human-readable error message that describes the nature of the violation.\nThis can be the default error message from the violated `Rule`, or it can be a custom message that gives more context about the violation.",
      "type": [
        "string",
        "null"
      ]
    },
    "rule": {
      "description": "The validation rule that failed.",
      "oneOf": [
        {
          "$ref": "#/components/schemas/ValidationFieldPath"
        },
        {
          "type": "null"
        }
      ]
    },
    "ruleId": {
      "description": "`rule_id` is the unique identifier of the `Rule` that was not fulfilled.\nThis is the same `id` that was specified in the `Rule` message, allowing easy tracing of which rule was violated.",
      "type": [
        "string",
        "null"
      ]
    }
  },
  "title": "Violation",
  "type": "object"
}
```



