APIDevTools / swagger-cli

Swagger 2.0 and OpenAPI 3.0 command-line tool
https://apitools.dev/swagger-cli
MIT License
515 stars 69 forks source link

[Question] External reference with https://xxx/common.yaml #33

Open henggai opened 5 years ago

henggai commented 5 years ago

I have a schema file test.yaml with an external reference with https://xxx/common.yaml And I could use curl or web browser to directly access https://xxx/common.yaml. However, when I tried to use swagger-cli to validate the test.yaml, it shows me

Error downloading https://xxx/common.yaml unable to verify the first certificate

Is there a way for swagger-cli to specify the certificate? So it could download the external schema successfully?