{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/treg-to/json-schema/treg-to-mark-in-schema.json",
  "title": "MarkIn",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/treg-to-openapi.json#/components/schemas/MarkIn",
  "properties": {
    "call_id": {
      "type": "string",
      "maxLength": 128,
      "minLength": 1,
      "pattern": "^[A-Za-z0-9_-]+$",
      "title": "Call Id"
    },
    "basis": {
      "type": "string",
      "enum": [
        "bounced",
        "cross_checked",
        "user_said",
        "impression"
      ],
      "title": "Basis"
    },
    "items": {
      "items": {
        "$ref": "#/$defs/MarkItem"
      },
      "type": "array",
      "maxItems": 200,
      "title": "Items"
    },
    "checked": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 100000.0,
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Checked"
    },
    "evidence_call_id": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9_-]+$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Evidence Call Id"
    },
    "note": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 500,
          "minLength": 1
        },
        {
          "type": "null"
        }
      ],
      "title": "Note"
    },
    "replaces": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 1.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Replaces"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "call_id",
    "basis"
  ],
  "$defs": {
    "MarkItem": {
      "properties": {
        "verdict": {
          "type": "string",
          "enum": [
            "correct",
            "wrong",
            "stale",
            "wrong_entity",
            "missing",
            "irrelevant",
            "duplicate",
            "other"
          ],
          "title": "Verdict"
        },
        "index": {
          "anyOf": [
            {
              "type": "integer",
              "maximum": 100000.0,
              "minimum": 0.0
            },
            {
              "type": "null"
            }
          ],
          "title": "Index"
        },
        "field": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 120,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9_.\\[\\]-]+$"
            },
            {
              "type": "null"
            }
          ],
          "title": "Field"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "verdict"
      ],
      "title": "MarkItem"
    }
  }
}