{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/evalgate-com/json-schema/evalgate-com-post-api-audit-corrective-actions-response201-application-json-schema.json",
  "title": "PostApiAuditCorrectiveActionsResponse201ApplicationJson",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/evalgate-com-audit-api-openapi.yml#/components/schemas/PostApiAuditCorrectiveActionsResponse201ApplicationJson",
  "type": "object",
  "properties": {
    "id": {
      "type": "number"
    },
    "engagementId": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "type": "number"
        }
      ]
    },
    "auditTestId": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "type": "number"
        }
      ]
    },
    "originalFinding": {
      "type": "string"
    },
    "ownerUserId": {
      "type": "string"
    },
    "deadline": {
      "type": "string"
    },
    "status": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "open"
          ]
        },
        {
          "type": "string",
          "enum": [
            "in_progress"
          ]
        },
        {
          "type": "string",
          "enum": [
            "awaiting_retest"
          ]
        },
        {
          "type": "string",
          "enum": [
            "closed"
          ]
        }
      ]
    },
    "responseText": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "type": "string"
        }
      ]
    },
    "respondedAt": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "type": "string"
        }
      ]
    },
    "causeAnalysis": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "type": "string"
        }
      ]
    },
    "retestNotes": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "type": "string"
        }
      ]
    },
    "retestedAt": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "type": "string"
        }
      ]
    },
    "retestedBy": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "type": "string"
        }
      ]
    },
    "closedAt": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "type": "string"
        }
      ]
    },
    "closedBy": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "type": "string"
        }
      ]
    },
    "closureRationale": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "type": "string"
        }
      ]
    },
    "createdBy": {
      "type": "string"
    },
    "createdAt": {
      "type": "string"
    },
    "updatedAt": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "required": [
    "id",
    "engagementId",
    "auditTestId",
    "originalFinding",
    "ownerUserId",
    "deadline",
    "status",
    "responseText",
    "respondedAt",
    "causeAnalysis",
    "retestNotes",
    "retestedAt",
    "retestedBy",
    "closedAt",
    "closedBy",
    "closureRationale",
    "createdBy",
    "createdAt",
    "updatedAt"
  ]
}