{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cloudmersive/json-schema/cloudmersive-rephrase-response-schema.json",
  "title": "RephraseResponse",
  "description": "Output of a text rephrasing operation",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudmersive-rephrase-api-openapi.yml#/components/schemas/RephraseResponse",
  "type": "object",
  "properties": {
    "Successful": {
      "description": "True if the language detection operation was successful, false otherwise",
      "type": "boolean"
    },
    "RephrasedResults": {
      "description": "Results of the rephrasing, paraphrasing operation, in the order of the input sentences",
      "type": "array",
      "items": {
        "$ref": "#/$defs/RephrasedSentence"
      }
    },
    "SentenceCount": {
      "format": "int32",
      "description": "Number of sentences in input text",
      "type": "integer"
    }
  },
  "$defs": {
    "RephrasedSentence": {
      "description": "One input sentence and associated rephrasing results",
      "type": "object",
      "properties": {
        "SentenceIndex": {
          "format": "int32",
          "description": "Index of the sentence, 1-based, ordered",
          "type": "integer"
        },
        "OriginalSentenceText": {
          "description": "Original input sentence text",
          "type": "string"
        },
        "Rephrasings": {
          "description": "Rephrasing text options, candidates of the original input sentence, in order - with best candidate first",
          "type": "array",
          "items": {
            "$ref": "#/$defs/RephrasedSentenceOption"
          }
        }
      }
    },
    "RephrasedSentenceOption": {
      "description": "One rephrasing of an original input sentence",
      "type": "object",
      "properties": {
        "RephrasedOptionIndex": {
          "format": "int32",
          "description": "Ordered index of the rephrasing option, 1-based, with 1 being the best option",
          "type": "integer"
        },
        "RephrasedSentenceText": {
          "description": "One sentence of output rephrased text of original input sentence",
          "type": "string"
        }
      }
    }
  }
}