acacode / acacode/swagger-typescript-api

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

Open
#669 1 comment 6 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.1k
Forks
436
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.