swagger-api / swagger-api/swagger-codegen
Swagger CodeGen HTTPS SSL/TLS Connectivity
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Description
We have our service integrated with Swagger OpenAPI Spec and published on HTTPS URL.
Need to create swagger codegen client for java, javascript pointing to swagger yaml published on HTTPS.
When tried below command got SSLHandshakeError.
"swagger-codegen generate -i https://SERVER_IP:443/api/swagger.yaml -l java -o java-api/."
Also when swagger codegen generates client will it have Mutual SSL/TLS code for https swagger spec url?
Tried against HTTP URL working but need here is for HTTPS.
Swagger-codegen version
2.1.6
Swagger declaration file content or url
Command line used for generation
swagger-codegen generate -i https://SERVER_IP:443/api/swagger.yaml -l java -o java-api/.
Steps to reproduce
Related issues
Suggest a Fix
Swagger Codegen support for HTTPS YAML/JSON OpenAPI Spec.
Client code generated should have mutual SSL/TLS code for testing against HTTPS URL.
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 with the swagger-codegen generate command shown in the issue and trace how the HTTPS Swagger YAML URL is fetched before generation. Check how generated Java and JavaScript clients handle HTTPS and mutual TLS; done means the HTTPS specification URL works and the generated clients support the requested TLS setup.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, javascript
- Domain
- api, security
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100