{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nulegal-eu/json-schema/nulegal-eu-resolve-request-schema.json",
  "title": "ResolveRequest",
  "description": "Send `citations` (a list of citation strings) or `text` (running text). An entry of `citations` that holds several citations keeps its own result and lists the others under `extracted` (at most {resolve_text.MAX_FOUND} per request; `extracted_truncated: true` past that).",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nulegal-eu-openapi.yml#/components/schemas/ResolveRequest",
  "properties": {
    "citations": {
      "items": {
        "type": "string",
        "maxLength": 200
      },
      "type": "array",
      "maxItems": 100,
      "title": "Citations"
    },
    "include": {
      "items": {
        "type": "string",
        "enum": [
          "text",
          "leitsatz"
        ]
      },
      "type": "array",
      "maxItems": 4,
      "title": "Include"
    },
    "text": {
      "type": "string",
      "maxLength": 20000,
      "title": "Text",
      "description": "Running text instead of `citations`: every norm citation, docket, EU case number and ECLI in it is found and resolved, one result each with its `span` [start, end]. `unparsed` lists the remaining stretches that still contain a digit. At most 100 citations are resolved; `truncated: true` says the text held more (and `unparsed` is then empty). Read only when `citations` is absent."
    }
  },
  "type": "object",
  "required": []
}