Skip to content

TruncatedResult ​

Type: object

FieldRequiredTypeDescription and constraints
exit_codeNointeger / null
headYesstring
original_bytesYesinteger / null
source_typeNostringenum: ["text","json"]
default: "text"
tailYesstring
typeYesstringconst: "truncated_text"
default: "truncated_text"

JSON Schema ​

json
{
  "properties": {
    "exit_code": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Exit Code"
    },
    "head": {
      "title": "Head",
      "type": "string"
    },
    "original_bytes": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Original Bytes"
    },
    "source_type": {
      "default": "text",
      "enum": [
        "text",
        "json"
      ],
      "title": "Source Type",
      "type": "string"
    },
    "tail": {
      "title": "Tail",
      "type": "string"
    },
    "type": {
      "const": "truncated_text",
      "default": "truncated_text",
      "title": "Type",
      "type": "string"
    }
  },
  "required": [
    "head",
    "tail",
    "original_bytes",
    "type"
  ],
  "title": "TruncatedResult",
  "type": "object"
}

All schemas · HTTP API