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

Open Beginner friendly
#669 1 comment 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
65/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
cli, nodejs, typescript
Domain
cli, tooling

Research direction

The issue is in the CLI parameter parsing where --disableStrictSSL from the command line is incorrectly formatted as disableStrictSsl (lowercase 'l'), while the config expects disableStrictSSL. Look at the CLI library used (likely in the cli module) to adjust the formatter. Check the screenshots pointing to swagger-schema-resolver.js:25 and index.js:304 to understand the config merging. Verify the fix by running the npx command with the flag and ensuring no SSL exception occurs.

Written by the indexing model from the issue text.

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

index.js:304
image

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

Dominant language
TypeScript
Stars
4.1k
Forks
436
Avg merge
9d 7h
Merged PRs (30d)
3

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from acacode/swagger-typescript-api

All issues in acacode/swagger-typescript-api

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.