Error loading Swagger Spec: Decoding failed at "components": Nothing found
haemi opened this issue · comments
Stefan Walkner commented
Some files give me the error Error loading Swagger Spec: Decoding failed at "components": Nothing found
when trying to generate Swift with SwagGen.
One of those files is this: https://github.com/OAI/OpenAPI-Specification/blob/master/examples/v3.0/api-with-examples.yaml
Yonas Kolb commented
Looks like components
is required by the decoder, which it technically doesn’t need to be. Most specs will have components but it shouldn’t fail if they don’t
Stefan Walkner commented
thanks for your quick response!
Absolutely not to blame you, but does this mean it's a bug in swaggen? If yes, do you plan to work on it?