{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/smry-ai/json-schema/smry-ai-post-read-request-schema.json",
  "title": "PostReadRequest",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/smry-ai-public-openapi.json#/components/schemas/PostReadRequest",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "url"
  ],
  "properties": {
    "url": {
      "type": "string",
      "format": "uri",
      "description": "Exact public HTTP or HTTPS source URL."
    },
    "query": {
      "type": "string",
      "maxLength": 512,
      "description": "Optional focused question or search phrase."
    },
    "lines": {
      "type": "string",
      "pattern": "^[1-9][0-9]*(?:-[1-9][0-9]*)?$",
      "description": "One paragraph number or an inclusive range."
    },
    "passages": {
      "type": "integer",
      "minimum": 1,
      "maximum": 20,
      "default": 8
    },
    "format": {
      "type": "string",
      "enum": [
        "json",
        "text"
      ],
      "default": "json"
    }
  }
}