encode/apistar

The generated documentation is wrong

Closed this issue · 4 comments

from modules.auth import UserModel as User


def welcome(user: User, name):
    return {'hello': user.username}

routes = [
# ...
    Route('/example/{name}', 'GET', welcome),
# ...
]

http://localhost:5000/docs/ show the user for query parameters! 🤕
dude

Can you include 'UserModel' in the example? It not clear what your doing exactly otherwise.

Closed via 4aee8b4

@tomchristie thx! fast fix!