{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/3gppscout-com/json-schema/3gppscout-com-proposal-comparison-request-schema.json",
  "title": "ProposalComparisonRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/3gppscout-com-analysis-api-openapi.yml#/components/schemas/ProposalComparisonRequest",
  "properties": {
    "text": {
      "type": "string",
      "maxLength": 12000,
      "minLength": 20,
      "title": "Text",
      "description": "The proposal to compare: a requirement list, a design description, a draft contribution, or a structured statement with a preamble and numbered or semicolon-separated features. 20 to 12,000 characters; split longer documents."
    },
    "available_before": {
      "anyOf": [
        {
          "type": "string",
          "format": "date"
        },
        {
          "type": "null"
        }
      ],
      "title": "Available Before",
      "description": "Only search specification versions uploaded to the 3GPP archive before this date (YYYY-MM-DD, the day itself excluded). Same rule as available_before on /search/text."
    },
    "filter_series": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^\\d{2}$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Filter Series",
      "description": "Restrict every search to one 3GPP series, e.g. '38' (NR), '36' (LTE), '23' (architecture), '33' (security). Omit to search all series."
    },
    "wait_seconds": {
      "type": "integer",
      "maximum": 55.0,
      "minimum": 0.0,
      "title": "Wait Seconds",
      "description": "How long to wait for the result before returning status 'running' with a comparison_id to poll. Runs usually take 40 to 90 seconds.",
      "default": 45
    }
  },
  "type": "object",
  "required": [
    "text"
  ]
}