swagger-api / swagger-codegen

swagger-codegen contains a template-driven engine to generate documentation, API clients and server stubs in different languages by parsing your OpenAPI / Swagger definition.
http://swagger.io
Apache License 2.0
16.77k stars 6.02k forks source link

NSURLSession HTTP Load Failed with unsecured Domain #6979

Open Dhruv8015 opened 6 years ago

Dhruv8015 commented 6 years ago

I am using swagger for api request response in swift.But whenever I called with unsecure domain,api fails. ex api "https://192.168.0.151:8081/api/events" .. I think I have to get URLCredential ,but how?

I am using 3.0.5

wing328 commented 6 years ago

Which version of Swift? The latest master supports Swift 1.x, 3.x and 4.x.

SNAPSHOT version of the latest master can be found in the project README.