New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use swaggerUiPrefix in template_file #196

Open
phil2fer opened this Issue May 1, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@phil2fer

phil2fer commented May 1, 2018

I want to use template_file argument with a unique YAML file.
But i'm behind a reverse proxy and i need to use the "swaggerUiPrefix" option in the template.

swaggerUiPrefix=LazyString(lambda : request.environ.get('HTTP_X_SCRIPT_NAME', ''))

But when i use a YAML file, this option doesn't work. flasgger see this option like a string

How can i use the 'swaggerUiPrefix' in YAML file ?

@rochacbruno

This comment has been minimized.

Show comment
Hide comment
@rochacbruno

rochacbruno May 2, 2018

Owner

Currently there is no way to evaluate lazy values on YAML, we can implement it.

Owner

rochacbruno commented May 2, 2018

Currently there is no way to evaluate lazy values on YAML, we can implement it.

@phil2fer

This comment has been minimized.

Show comment
Hide comment
@phil2fer

phil2fer May 2, 2018

thank you for your quick answer.
Why not move this option to the swagger config dictionary ? I think is more a config parameter than a template parameter

phil2fer commented May 2, 2018

thank you for your quick answer.
Why not move this option to the swagger config dictionary ? I think is more a config parameter than a template parameter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment