question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

swagger config after init

See original GitHub issue

I want to generate my host and schemes in swagger dynamically by using request.

for example

host=request.host,
schemes=['https' if request.is_secure else 'http'

Is it possible after Swagger(app) ?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
wobengcommented, Sep 28, 2017

you are the man!

Please update me when its fixed

1reaction
rochacbrunocommented, Sep 28, 2017

@wobeng thanks for trying.

We can fix this by extending the jsonify serializers to recognize the LazyString, and maybe bring the LazyString in as flasgger.lazy I’ll give a try.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuration - Swagger Documentation
Swagger UI accepts configuration parameters in four locations. From lowest to highest precedence: The swagger-config.yaml in the project root directory, if it ...
Read more >
swagger config after init · Issue #158 - GitHub
I want to generate my host and schemes in swagger dynamically by using request. for example host=request.host, schemes=['https' if ...
Read more >
Setting Up Swagger 2 with a Spring REST API - Baeldung
Learn how to document a Spring REST API using Swagger 2. ... Swagger UI adds a set of resources that we must configure...
Read more >
Setting swagger config parameters in SpringDoc
I am trying to override Swagger configuration in SpringDoc ...
Read more >
OpenAPI (Swagger) | NestJS - A progressive Node.js framework
You can configure Swagger UI by passing the options object which fulfills the ExpressSwaggerCustomOptions (if you use express) interface as a fourth argument...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found