{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rockwell-automation/json-schema/rockwell-automation-get-deviation-response-dto-schema.json",
  "title": "GetDeviationResponseDto",
  "description": "The data structure representing a deviation.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rockwell-automation-deviations-api-api-openapi.yml#/components/schemas/GetDeviationResponseDto",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "ID representing the deviation."
    },
    "acknowledgementLimit": {
      "type": "integer",
      "format": "int32",
      "description": "The acknowledgement limit."
    },
    "approvedByUserId": {
      "type": "string",
      "description": "ID representing the approving user."
    },
    "approvedDate": {
      "type": "string",
      "format": "date-time",
      "description": "The approved date."
    },
    "buildingId": {
      "type": "string",
      "format": "uuid",
      "description": "ID representing the building."
    },
    "buildingCode": {
      "type": "string",
      "description": "The building code."
    },
    "codeNo": {
      "type": "string",
      "description": "The code no."
    },
    "departmentCode": {
      "type": "string",
      "description": "The department code."
    },
    "deviationAcknowledgementFrequencyDescription": {
      "type": "string",
      "description": "The deviation acknowledgement frequency."
    },
    "deviationNo": {
      "type": "string",
      "description": "The deviation no."
    },
    "deviationStatus": {
      "type": "string",
      "description": "The deviation status."
    },
    "effectiveDate": {
      "type": "string",
      "format": "date-time",
      "description": "The effective date."
    },
    "expirationDate": {
      "type": "string",
      "format": "date-time",
      "description": "The expiration date."
    },
    "jobIds": {
      "type": "array",
      "description": "A list of IDs representing deviation jobs.",
      "items": {
        "type": "string",
        "format": "uuid"
      }
    },
    "note": {
      "type": "string",
      "description": "The deviation note."
    },
    "type": {
      "type": "string",
      "description": "The deviation type."
    },
    "parts": {
      "type": "array",
      "description": "A list of deviation parts.",
      "items": {
        "type": "object",
        "properties": {}
      }
    },
    "piecesAffected": {
      "type": "integer",
      "format": "int32",
      "description": "The pieces affected."
    },
    "reason": {
      "type": "string",
      "description": "The deviation reason."
    },
    "revisionDeviationId": {
      "type": "string",
      "format": "uuid",
      "description": "ID representing the revision deviation."
    },
    "revisionDeviationNo": {
      "type": "string",
      "description": "The revision deviation no."
    },
    "supplierId": {
      "type": "string",
      "format": "uuid",
      "description": "ID representing the supplier."
    }
  }
}