{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-comprehend/json-schema/amazon-comprehend-detect-toxic-content-request-schema.json",
  "title": "DetectToxicContentRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-comprehend-operations-api-openapi.yml#/components/schemas/DetectToxicContentRequest",
  "type": "object",
  "properties": {
    "TextSegments": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/TextSegment"
      },
      "description": "A list of up to 10 text strings. Each string has a maximum size of 1 KB, and the maximum size of the list is 10 KB."
    },
    "LanguageCode": {
      "type": "string",
      "enum": [
        "en",
        "es",
        "fr",
        "de",
        "it",
        "pt",
        "ar",
        "hi",
        "ja",
        "ko",
        "zh",
        "zh-TW"
      ],
      "description": "The language of the input text. Currently, English is the only supported language."
    }
  },
  "required": [
    "TextSegments",
    "LanguageCode"
  ],
  "$defs": {
    "TextSegment": {
      "type": "object",
      "properties": {
        "Text": {
          "type": "string",
          "description": "The text content."
        }
      },
      "required": [
        "Text"
      ]
    }
  }
}