{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/evalgate-com/json-schema/evalgate-com-post-api-adjudication-items-id-decision-response200-application-json-schema.json",
  "title": "PostApiAdjudicationItemsIdDecisionResponse200ApplicationJson",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/evalgate-com-adjudication-api-openapi.yml#/components/schemas/PostApiAdjudicationItemsIdDecisionResponse200ApplicationJson",
  "type": "object",
  "properties": {
    "item": {
      "type": "object",
      "properties": {
        "id": {
          "type": "number"
        },
        "reasonCode": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "severity": {
          "type": "string"
        },
        "sourceType": {
          "type": "string"
        },
        "sourceId": {
          "type": "string"
        },
        "evaluationId": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "type": "number"
            }
          ]
        },
        "title": {
          "type": "string"
        },
        "summary": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "type": "string"
            }
          ]
        },
        "provenance": {
          "type": "object",
          "properties": {
            "sourceLabel": {
              "type": "string"
            },
            "redactedPreview": {
              "type": "object",
              "additionalProperties": {
                "$ref": "#/$defs/JsonValue"
              }
            },
            "traceKey": {
              "type": "string"
            },
            "evalCaseId": {
              "type": "string"
            },
            "confidence": {
              "type": "number"
            }
          },
          "additionalProperties": false
        },
        "assignedTo": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "type": "string"
            }
          ]
        },
        "createdBy": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "type": "string"
            }
          ]
        },
        "createdAt": {
          "type": "string"
        },
        "updatedAt": {
          "type": "string"
        },
        "resolvedAt": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "type": "string"
            }
          ]
        }
      },
      "additionalProperties": false,
      "required": [
        "id",
        "reasonCode",
        "status",
        "severity",
        "sourceType",
        "sourceId",
        "evaluationId",
        "title",
        "summary",
        "provenance",
        "assignedTo",
        "createdBy",
        "createdAt",
        "updatedAt",
        "resolvedAt"
      ]
    },
    "decision": {
      "type": "object",
      "properties": {
        "id": {
          "type": "number"
        },
        "itemId": {
          "type": "number"
        },
        "decision": {
          "type": "string"
        },
        "rationale": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "type": "string"
            }
          ]
        },
        "editedFields": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/JsonValue"
          }
        },
        "reviewerId": {
          "type": "string"
        },
        "reviewerKind": {
          "oneOf": [
            {
              "type": "string",
              "enum": [
                "human"
              ]
            },
            {
              "type": "string",
              "enum": [
                "automation"
              ]
            },
            {
              "type": "string",
              "enum": [
                "unrecorded"
              ]
            }
          ]
        },
        "createdAt": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "required": [
        "id",
        "itemId",
        "decision",
        "rationale",
        "editedFields",
        "reviewerId",
        "reviewerKind",
        "createdAt"
      ]
    }
  },
  "additionalProperties": false,
  "required": [
    "item",
    "decision"
  ],
  "$defs": {
    "JsonValue": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "type": "boolean"
        },
        {
          "type": "number"
        },
        {
          "type": "string"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/JsonValue"
          }
        },
        {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/JsonValue"
          }
        }
      ]
    }
  }
}