К содержимому

TruncatedResult ​

Тип: object

ПолеОбязательноеТипОписание и ограничения
exit_codeНетinteger / null
headДаstring
original_bytesДаinteger / null
source_typeНетstringenum: ["text","json"]
default: "text"
tailДаstring
typeДаstringconst: "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"
}

Все схемы · HTTP API