{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/twexapi-io/json-schema/twexapi-io-sentiment-analysis-response-schema.json",
  "title": "SentimentAnalysisResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/twexapi-io-sentiment-analysis-endpoints-api-openapi.yml#/components/schemas/SentimentAnalysisResponse",
  "properties": {
    "code": {
      "type": "integer",
      "title": "Code",
      "description": "The status code of the response."
    },
    "msg": {
      "type": "string",
      "title": "Msg",
      "description": "The message of the response."
    },
    "data": {
      "$ref": "#/$defs/SentimentAnalysisModel",
      "description": "The sentiment analysis model."
    }
  },
  "type": "object",
  "required": [
    "code",
    "msg",
    "data"
  ],
  "$defs": {
    "SentimentAnalysisModel": {
      "properties": {
        "tone": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Tone",
          "description": "The tone of the text. Positive, Negative, Neutral, Humorous, Sarcastic, Enthusiastic, Angry, or Informative"
        },
        "sentiment": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Sentiment",
          "description": "The sentiment of the text. Positive, Negative, or Neutral"
        }
      },
      "type": "object",
      "title": "SentimentAnalysisModel"
    }
  }
}