getsling / flask-swagger

A swagger 2.0 spec extractor for flask
MIT License
457 stars 91 forks source link

Swagger from file #35

Closed ninit closed 8 years ago

ninit commented 8 years ago

Hi,

This is a proposal to decode a special line in a docstring swagger_from_file: path.

I think it could be useful sometimes to take the yaml swagger spec out of the docstring:

In the pull request you'll find besides flask_swagger.py a modified example and README.md

Please criticize as needed. Thanks.

atlithorn commented 8 years ago

Otherwise looks good and thanks for contributing!

ninit commented 8 years ago

Thanks for your review. You're right, it's better to leave this off by default. I've just committed the change.