Skip to content

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

@sttt24

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)
        ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions