acacode / acacode/swagger-typescript-api

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

Aperta
#669 1 commento 6 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
4.1k
Fork
436
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.