Carapacik / swagger_parser

Dart package that takes an OpenApi definition file and generates REST clients based on retrofit and data classes for your project.
https://pub.dev/packages/swagger_parser
MIT License
90 stars 38 forks source link

file type should not be determined by url extension. #111

Closed theoolee closed 10 months ago

theoolee commented 10 months ago

Some of my swagger url doesn't have an extension, and there would be an unsupported error. Is that getting the file type from the response header a good way?

Carapacik commented 10 months ago

I'm not sure about this, it's better to explicitly specify it in the url if you use it directly without downloading