openapi2typescript icon indicating copy to clipboard operation
openapi2typescript copied to clipboard

文档请求参数如果在header中 转换是错误的.

Open vipwan opened this issue 3 years ago • 0 comments

        "parameters": [
          {
            "name": "tenantId",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "default": "tenant's Id"
          }
        ]

比如 请求中有一个参数是tenantId,该参数需要通过Header传递 ,但是生成的代理该参数不会包装到header去 而是query :(

vipwan avatar Sep 25 '22 15:09 vipwan