{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/3gppscout-com/json-schema/3gppscout-com-rfc-search-request-schema.json",
  "title": "RfcSearchRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/3gppscout-com-rfcs-api-openapi.yml#/components/schemas/RfcSearchRequest",
  "properties": {
    "query": {
      "type": "string",
      "maxLength": 1000,
      "minLength": 2,
      "title": "Query",
      "description": "What the RFC text should say, in plain words or exact terms, e.g. 'SCTP path failure detection', 'Flex-Algo prefix advertisement', 'RFC 3261 3xx response handling'."
    },
    "rfcs": {
      "anyOf": [
        {
          "items": {
            "type": "integer"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Rfcs",
      "description": "Only these RFC numbers, e.g. [3261, 3264]."
    },
    "include_obsoleted": {
      "type": "boolean",
      "title": "Include Obsoleted",
      "description": "Include RFCs that a later RFC obsoletes. 3GPP specs often cite those by number.",
      "default": true
    },
    "cited_only": {
      "type": "boolean",
      "title": "Cited Only",
      "description": "Only RFCs that a current 3GPP spec cites.",
      "default": false
    },
    "top_k": {
      "type": "integer",
      "maximum": 20.0,
      "minimum": 1.0,
      "title": "Top K",
      "description": "Passages to return.",
      "default": 5
    },
    "max_per_rfc": {
      "type": "integer",
      "maximum": 5.0,
      "minimum": 1.0,
      "title": "Max Per Rfc",
      "description": "At most this many passages from one RFC. Use 1 for a list of distinct RFCs.",
      "default": 2
    },
    "include_text": {
      "type": "boolean",
      "title": "Include Text",
      "description": "Include each passage's text.",
      "default": true
    }
  },
  "type": "object",
  "required": [
    "query"
  ]
}