{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/amazon-comprehend/refs/heads/main/json-schema/openapi.yml-detect-sentiment-request-schema.json",
"title": "DetectSentimentRequest",
"description": "DetectSentimentRequest schema",
"type": "object",
"properties": {
"Text": {
"allOf": [
{
"$ref": "#/components/schemas/CustomerInputString"
},
{
"description": "A UTF-8 text string. The maximum string size is 5 KB."
}
]
},
"LanguageCode": {
"allOf": [
{
"$ref": "#/components/schemas/LanguageCode"
},
{
"description": "The language of the input documents. You can specify any of the primary languages supported by Amazon Comprehend. All documents must be in the same language."
}
]
}
},
"required": [
"Text",
"LanguageCode"
]
}