{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/peregrini-ai/json-schema/peregrini-ai-dispute-schema.json",
  "title": "Dispute",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/peregrini-ai-openapi.yml#/components/schemas/Dispute",
  "type": "object",
  "required": [
    "tenderId",
    "ground"
  ],
  "properties": {
    "tenderId": {
      "type": "string"
    },
    "ground": {
      "type": "string",
      "enum": [
        "does_not_exist",
        "passage_not_in_source",
        "altered",
        "context_omitted"
      ]
    },
    "text": {
      "type": "string",
      "maxLength": 6000,
      "description": "The disputant's own extract of the same passage"
    },
    "provenance": {
      "type": "object",
      "required": [
        "source"
      ],
      "properties": {
        "source": {
          "type": "string",
          "description": "Where the party found it"
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "edition": {
          "type": "string"
        },
        "language": {
          "type": "string"
        },
        "translator": {
          "type": "string"
        }
      }
    },
    "attested": {
      "type": "boolean"
    }
  }
}