Giter Site home page Giter Site logo

flyingbird95 / openapi-builder Goto Github PK

View Code? Open in Web Editor NEW
7.0 7.0 2.0 2.55 MB

A Flask extension to automatically add OpenAPI documentation for your Flask app.

Home Page: https://flyingbird95.github.io/openapi-builder

License: MIT License

Python 99.17% HTML 0.83%
blueprint flask flask-extension openapi openapi-documentation openapi-generator openapi-specification python swagger swagger-documentation

openapi-builder's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

openapi-builder's Issues

ValueError: self.config should be None, but is Documentation

  File "flask/app.py", line 2073, in wsgi_app
    response = self.full_dispatch_request()
  File "flask/app.py", line 1511, in full_dispatch_request
    self.try_trigger_before_first_request_functions()
  File "flask/app.py", line 1563, in try_trigger_before_first_request_functions
    self.ensure_sync(func)()
  File "openapi_builder/builder.py", line 113, in <lambda>
    app.before_first_request(lambda: self.builder.iterate_endpoints())
  File "openapi_builder/builder.py", line 162, in iterate_endpoints
    with self.config_manager.use_documentation_context(config):
  File "python3.6/contextlib.py", line 81, in __enter__
    return next(self.gen)
  File "openapi_builder/documentation.py", line 70, in use_documentation_context
    raise ValueError(f"self.config should be None, but is {self.config}")

Our setup is with multiple Apache workers in separate processes, no threading.

Is this reproducible by calling self.builder.iterate_endpoints() multiple times?

Does https://github.com/FlyingBird95/openapi-builder/blob/master/openapi_builder/documentation.py#L63 need a contextmanager?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.