{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lochless-io/json-schema/lochless-io-ingest-document-schema.json",
  "title": "IngestDocument",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lochless-io-openapi.json#/components/schemas/IngestDocument",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "id",
    "text",
    "timestamp"
  ],
  "properties": {
    "id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 512
    },
    "text": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1000000
    },
    "timestamp": {
      "type": "string",
      "format": "date-time"
    },
    "metadata": {
      "description": "Any JSON, at most 64 KB. metadata.title and metadata.url are shown with results."
    }
  }
}