Skip to content
This repository is currently being migrated. It's locked while the migration is in progress.

Passing Absolute YAML Path In Windows #47

Open
pia29agg opened this issue Mar 6, 2018 · 1 comment
Open

Passing Absolute YAML Path In Windows #47

pia29agg opened this issue Mar 6, 2018 · 1 comment

Comments

@pia29agg
Copy link

pia29agg commented Mar 6, 2018

Hi,
I am passing absolute path in doc string as below :
swagger_from_file: C:\Users\PriyankaAgarwal\repo2\example.yml
in doc string, but it is not detecting the file.
Reason: in flask_swagger.py, it splits using colon and check if array length after split is 2 , but here we get length as 3 so ,is there any other way to pass absolute path or modification to flask_swagger.py is needed to consider all part of that line after 1st colon as path.

@pia29agg pia29agg changed the title Passing Absolute YML Path In Windows Passing Absolute YAML Path In Windows Mar 6, 2018
@NotJustPizza
Copy link
Contributor

NotJustPizza commented Mar 26, 2018

@pia29agg
Try my fork: https://github.com/SlimaKCoder/flask-swagger
and contribute to pull: #48

Works on Windows 10. Drawback is that you need to place all documentation in one place, but you can also use subdirectories for relative paths.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants