Skip to content

'version' value is ignored when using 'init_app()'? #119

Description

@sttt24

The "version" value of swagger doc title doesn't update when I pass the value via "api.init_app()".

apix.init_app(app, version='1.1', title='Cat APIs',
                  description='API List For Cat APP')

But Version '1.0' is always the default.

Seems ok to add a line for "self.version" in "api.py"?

def init_app(self, app, **kwargs):
        ...
        self.app = app
        self.version = kwargs.get("version", self.version)
        self.title = kwargs.get("title", self.title)
        ...

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions