{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Ocean6 local task v0.2",
  "description": "Structural schema. Additional runtime constraints: UTF-8 document <= 20,000 bytes, scalar Unicode, and terms nonempty after ASCII space/tab trimming. Not a network API.",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "version",
    "operation",
    "document",
    "terms",
    "top_k"
  ],
  "properties": {
    "version": {
      "const": "0.2"
    },
    "operation": {
      "const": "literal-line-search"
    },
    "document": {
      "type": "string",
      "minLength": 1,
      "maxLength": 20000
    },
    "terms": {
      "type": "array",
      "minItems": 1,
      "maxItems": 16,
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 80,
        "pattern": "^[^\r\n]+$"
      }
    },
    "top_k": {
      "type": "integer",
      "minimum": 1,
      "maximum": 10
    }
  }
}
