acoomans / flask-autodoc

Flask autodoc automatically creates an online documentation for your flask application.
MIT License
98 stars 49 forks source link

Arguments are listed as args, kwargs when other decorators are also being used. #11

Closed sayeghr closed 9 years ago

sayeghr commented 10 years ago

For example, I am using flask-basicauth and my arguments for all endpoints are:

Arguments: args kwargs auth password

lukeyeager commented 9 years ago

Can you post the code you're using? When I do this:

@app.route('/user/<int:user_id>')
@auto.doc()
@basic_auth.required
def user(user_id):
    return 'Hello, #%d!' % user_id

I see one argument just as I'd expect.