acacode / acacode/swagger-typescript-api

`--disableStrictSSL` flag in `npx` command line is not working

未关闭
#669 1 条评论 6 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
4.1k
派生
436
PR 合并指标
30 天内没有已合并 PR

描述

After specifying `--disableStrictSSL` flag I continued to get ssl exception. After looking in debug, I discovered 2 options were set in `config` object: `disableStrictSSL: false` and `disableStrictSsl: true`. First one comes from config, second -- from command line.

version `13.0.3`

Screenshots are below

`swagger-schema-resolver.js:25`
![image](https://github.com/acacode/swagger-typescript-api/assets/1547639/9fb75319-bf3a-459b-8f4f-c343dfbcce2a)

`index.js:304`
![image](https://github.com/acacode/swagger-typescript-api/assets/1547639/93362806-658e-41e9-b844-be76ea89b786)

suggested fix would be to change formatter in `cli` library used to parse parameters
current workaround is to create permanent config file with `disableStrictSSL` setting

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。