Search or ask Docker

PreconditionFailure

PreconditionFailure schema in Docker Sandboxes API v1.

View Markdown

Experimental

Schema

Type: object

Describes what preconditions have failed.

For example, if an operation failed because it required the Terms of Service to be acknowledged, it could list the terms of service violation in the PreconditionFailure message.

violations

Type: array

Describes all precondition violations.
Array item

Schema: PreconditionFailureViolation

All schema constraints and annotations
{
  "description": "Describes all precondition violations.",
  "items": {
    "$ref": "#/components/schemas/PreconditionFailureViolation"
  },
  "type": "array"
}
All schema constraints and annotations
{
  "description": "Describes what preconditions have failed.\n\nFor example, if an operation failed because it required the Terms of Service to be\nacknowledged, it could list the terms of service violation in the\nPreconditionFailure message.",
  "properties": {
    "violations": {
      "description": "Describes all precondition violations.",
      "items": {
        "$ref": "#/components/schemas/PreconditionFailureViolation"
      },
      "type": "array"
    }
  },
  "title": "PreconditionFailure",
  "type": "object"
}