{
  "source": "middleware.js",
  "method": "text",
  "input-schema": {
    "type": "object",
    "additionalProperties": false,
    "properties": {
      "type": {
        "type": "array",
        "description": "What media type the middleware will parse. It an be an extension name (like txt), a mime type (like text/plain), or a mime type with a wildcard (like */* or text/*). Defaults to text/plain.",
        "items": {
          "type": "string",
          "title": "type",
          "enum": ["text/plain", "text/html", "text/*", "*/*"]
        }
      },
      "defaultCharset": {
        "type": "string",
        "description": "Specify the default character set for the text content if the charset is not specified in the Content-Type header of the request. Defaults to utf-8.",
        "enum": ["utf8", "utf-8", "ascii", "binary", "latin1", "hex", "base64", "base64url", "ucs2", "ucs-2", "utf16le", "utf-16le"]
      },
      "limit": {
        "type": "any",
        "description": "Controls the maximum request body size. Can be a number (number of bytes) or a string (e.g. '100kb')"
      }
    }
  },
  "output-schema": {
    "type": "any"
  },
  "meta": {
    "name": "text",
    "isInterface": true,
    "description": "Parse request body as text",
    "inherits": "core/http/middleware/interface"
  }
}