swagger-api / swagger-api/swagger-parser
allow invalid SSL certificates
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 867
- Forks
- 560
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 7
Description
I am trying to read a Swagger resource over https, in a testing environment, with (unfortunately) incorrect certificate. Swagger swagger = new SwaggerParser().read("https://some.bad.location/swagger.json"); results in swagger == null and no errors.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at SwaggerParser.read with the HTTPS URL shown in the issue and trace how remote resources and certificate failures are handled. Identify the relevant tests or add coverage for reading a Swagger resource with an invalid certificate; done means the requested testing-environment behavior is explicit and failures are not silently returned as null.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api, security
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100