yonaskolb / SwagGen

OpenAPI/Swagger 3.0 Parser and Swift code generator
MIT License
626 stars 147 forks source link

Add support to optional Security Requirements and top-level inheritance #310

Open Lucien opened 2 years ago

Lucien commented 2 years ago

Top-Level:

Screen Shot 2022-09-02 at 18 47 33

Operation:

Screen Shot 2022-09-02 at 18 21 40

Crash

When parsing a security requirement that included an empty array (optional marker), SwagGen was crashing.

Screen Shot 2022-08-17 at 19 40 20

Swagger/SecurityRequirement.swift:9: Fatal error: Unexpectedly found nil while unwrapping an Optional value

Screen Shot 2022-08-17 at 19 25 40