{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/azure-test-labs/json-schema/azure-test-labs-operation-result-schema.json",
  "title": "OperationResult",
  "description": "An Operation Result",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/azure-test-labs-operations-api-openapi.yml#/components/schemas/OperationResult",
  "properties": {
    "error": {
      "$ref": "#/$defs/OperationError",
      "description": "Error details for the operation in case of a failure."
    },
    "status": {
      "description": "The operation status.",
      "type": "string"
    },
    "statusCode": {
      "description": "The status code for the operation.",
      "enum": [
        "Continue",
        "SwitchingProtocols",
        "OK",
        "Created",
        "Accepted",
        "NonAuthoritativeInformation",
        "NoContent",
        "ResetContent",
        "PartialContent",
        "MultipleChoices",
        "MovedPermanently",
        "Redirect",
        "SeeOther",
        "NotModified",
        "UseProxy",
        "Unused",
        "TemporaryRedirect",
        "BadRequest",
        "Unauthorized",
        "PaymentRequired",
        "Forbidden",
        "NotFound",
        "MethodNotAllowed",
        "NotAcceptable",
        "ProxyAuthenticationRequired",
        "RequestTimeout",
        "Conflict",
        "Gone",
        "LengthRequired",
        "PreconditionFailed",
        "RequestEntityTooLarge",
        "RequestUriTooLong",
        "UnsupportedMediaType",
        "RequestedRangeNotSatisfiable",
        "ExpectationFailed",
        "UpgradeRequired",
        "InternalServerError",
        "NotImplemented",
        "BadGateway",
        "ServiceUnavailable",
        "GatewayTimeout",
        "HttpVersionNotSupported"
      ],
      "type": "string",
      "x-ms-enum": {
        "modelAsString": true,
        "name": "HttpStatusCode"
      }
    }
  },
  "type": "object",
  "$defs": {
    "OperationError": {
      "description": "Error details for the operation in case of a failure.",
      "properties": {
        "code": {
          "description": "The error code of the operation error.",
          "type": "string"
        },
        "message": {
          "description": "The error message of the operation error.",
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}