{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure/json-schema/microsoft-azure-analyze-text-jobs-input-schema.json",
  "title": "AnalyzeTextJobsInput",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-analyze-text-api-openapi.yml#/components/schemas/AnalyzeTextJobsInput",
  "type": "object",
  "properties": {
    "displayName": {
      "description": "Optional display name for the analysis job.",
      "type": "string"
    },
    "defaultLanguage": {
      "description": "Default language to use for records requesting automatic language detection.",
      "type": "string"
    },
    "analysisInput": {
      "$ref": "#/$defs/MultiLanguageAnalysisInput"
    },
    "tasks": {
      "description": "The set of tasks to execute on the input documents.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/AnalyzeTextLROTask"
      }
    }
  },
  "required": [
    "analysisInput",
    "tasks"
  ],
  "$defs": {
    "AnalyzeTextLROTask": {
      "type": "object",
      "required": [
        "kind"
      ],
      "properties": {
        "kind": {
          "$ref": "#/$defs/AnalyzeTextLROTaskKind"
        }
      },
      "allOf": [
        {
          "$ref": "common.json#/definitions/TaskIdentifier"
        }
      ]
    },
    "AnalyzeTextLROTaskKind": {
      "type": "string",
      "description": "Enumeration of supported long-running Text Analysis tasks.",
      "enum": [
        "SentimentAnalysis",
        "EntityRecognition",
        "PiiEntityRecognition",
        "KeyPhraseExtraction",
        "EntityLinking",
        "Healthcare",
        "CustomHealthcare",
        "ExtractiveSummarization",
        "CustomEntityRecognition",
        "CustomSingleLabelClassification",
        "CustomMultiLabelClassification",
        "AbstractiveSummarization",
        "CustomSentimentAnalysis",
        "CustomAbstractiveSummarization"
      ],
      "x-ms-enum": {
        "name": "AnalyzeTextLROTaskKind",
        "modelAsString": true
      }
    },
    "MultiLanguageAnalysisInput": {
      "type": "object",
      "properties": {
        "documents": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/MultiLanguageInput"
          }
        }
      }
    },
    "MultiLanguageInput": {
      "type": "object",
      "description": "Contains an input document to be analyzed by the service.",
      "required": [
        "id",
        "text"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "A unique, non-empty document identifier."
        },
        "text": {
          "type": "string",
          "description": "The input text to process."
        },
        "language": {
          "type": "string",
          "description": "(Optional) This is the 2 letter ISO 639-1 representation of a language. For example, use \"en\" for English; \"es\" for Spanish etc. For Auto Language Detection, use \"auto\". If not set, use \"en\" for English as default."
        }
      }
    }
  }
}