{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/isgenai/json-schema/isgenai-json-check-input-schema.json",
  "title": "JsonCheckInput",
  "description": "Send one input field. If multiple nonblank fields are supplied, JSON precedence is code, text, then url. Successful checks may have unresolved origin or unavailable adapters.",
  "x-generated": "2026-11-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/isgenai-openapi.json#/components/schemas/JsonCheckInput",
  "type": "object",
  "properties": {
    "text": {
      "type": "string",
      "description": "Nonblank text. The server trims surrounding whitespace, then accepts at most 16,000 UTF-16 code units (some characters occupy two units).",
      "minLength": 1,
      "maxLength": 16000
    },
    "code": {
      "type": "string",
      "description": "Nonblank text. The server trims surrounding whitespace, then accepts at most 16,000 UTF-16 code units (some characters occupy two units).",
      "minLength": 1,
      "maxLength": 16000
    },
    "url": {
      "type": "string",
      "description": "Public HTTP or HTTPS URL. A missing scheme is normalized to HTTPS. Local/private network destinations are blocked. Authentication, paywalls and CAPTCHAs are not bypassed.",
      "minLength": 1
    },
    "kind": {
      "type": "string",
      "description": "Applies to the text field only; defaults to text. The code field always selects code.",
      "enum": [
        "text",
        "code"
      ]
    },
    "language": {
      "type": "string",
      "description": "Optional language hint included with text/code adapter details."
    },
    "privacy": {
      "type": "string",
      "description": "Files, text and code default to private unless public_receipt=true. URL and article checks default to public. Explicit privacy overrides that choice. Use privacy=private to keep the result out of public records, even when checking a URL; public_receipt=false alone does not make a URL check private.",
      "enum": [
        "private",
        "public"
      ]
    },
    "public_receipt": {
      "type": "boolean",
      "description": "Private checks never publish receipts. For public file/text/code checks, a receipt requires public_receipt=true. Public URL/article checks publish receipts unless public_receipt=false. A public result may be stored without a receipt."
    },
    "source_context": {
      "type": "string",
      "description": "Optional caller-supplied context. Do not include information you do not want processed or, for public checks, published."
    },
    "force_refresh": {
      "type": "boolean",
      "default": false,
      "description": "Requests refresh where supported. It does not bypass provider availability, safety limits, budgets or all provider caches."
    },
    "deep": {
      "type": "boolean",
      "description": "Accepted for compatibility. It currently does not select a separate deep-analysis path or guarantee additional checks."
    }
  },
  "anyOf": [
    {
      "required": [
        "text"
      ]
    },
    {
      "required": [
        "code"
      ]
    },
    {
      "required": [
        "url"
      ]
    }
  ]
}