{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/evalgate-com/json-schema/evalgate-com-get-api-audit-samples-response200-application-json-schema.json",
  "title": "GetApiAuditSamplesResponse200ApplicationJson",
  "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/GetApiAuditSamplesResponse200ApplicationJson",
  "type": "object",
  "properties": {
    "sample": {
      "type": "object",
      "properties": {
        "id": {
          "type": "number"
        },
        "populationId": {
          "type": "number"
        },
        "populationHash": {
          "type": "string"
        },
        "method": {
          "oneOf": [
            {
              "type": "string",
              "enum": [
                "statistical"
              ]
            },
            {
              "type": "string",
              "enum": [
                "judgmental"
              ]
            },
            {
              "type": "string",
              "enum": [
                "systematic"
              ]
            },
            {
              "type": "string",
              "enum": [
                "stratified"
              ]
            },
            {
              "type": "string",
              "enum": [
                "targeted"
              ]
            }
          ]
        },
        "algorithm": {
          "type": "string"
        },
        "algorithmVersion": {
          "type": "string"
        },
        "seed": {
          "type": "string"
        },
        "sampleSize": {
          "type": "number"
        },
        "selectorUserId": {
          "type": "string"
        },
        "selectedItemIds": {
          "type": "array",
          "items": {
            "type": "number"
          }
        },
        "revision": {
          "type": "number"
        },
        "revisionReason": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "type": "string"
            }
          ]
        },
        "supersedesSampleId": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "type": "number"
            }
          ]
        },
        "createdAt": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "required": [
        "id",
        "populationId",
        "populationHash",
        "method",
        "algorithm",
        "algorithmVersion",
        "seed",
        "sampleSize",
        "selectorUserId",
        "selectedItemIds",
        "revision",
        "revisionReason",
        "supersedesSampleId",
        "createdAt"
      ]
    },
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "populationId": {
            "type": "number"
          },
          "recordType": {
            "type": "string"
          },
          "recordId": {
            "type": "string"
          },
          "recordOccurredAt": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "type": "string"
              }
            ]
          },
          "reconciliationState": {
            "oneOf": [
              {
                "type": "string",
                "enum": [
                  "unresolved"
                ]
              },
              {
                "type": "string",
                "enum": [
                  "matched"
                ]
              },
              {
                "type": "string",
                "enum": [
                  "unmatched"
                ]
              },
              {
                "type": "string",
                "enum": [
                  "duplicate"
                ]
              },
              {
                "type": "string",
                "enum": [
                  "excluded"
                ]
              }
            ]
          },
          "reconciliationReason": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "type": "string"
              }
            ]
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/$defs/JsonValue"
            }
          },
          "hasApproval": {
            "type": "boolean"
          },
          "approvalStatus": {
            "oneOf": [
              {
                "type": "string",
                "enum": [
                  "approved_at_occurrence"
                ]
              },
              {
                "type": "string",
                "enum": [
                  "not_approved"
                ]
              },
              {
                "type": "string",
                "enum": [
                  "unknown_insufficient_evidence"
                ]
              }
            ]
          }
        },
        "additionalProperties": false,
        "required": [
          "id",
          "populationId",
          "recordType",
          "recordId",
          "recordOccurredAt",
          "reconciliationState",
          "reconciliationReason",
          "metadata",
          "hasApproval",
          "approvalStatus"
        ]
      }
    }
  },
  "additionalProperties": false,
  "required": [
    "sample",
    "items"
  ],
  "$defs": {
    "JsonValue": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "type": "boolean"
        },
        {
          "type": "number"
        },
        {
          "type": "string"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/JsonValue"
          }
        },
        {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/JsonValue"
          }
        }
      ]
    }
  }
}