The generated documentation is wrong
Closed this issue · 4 comments
agalera commented
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! 🤕
tomchristie commented
Can you include 'UserModel' in the example? It not clear what your doing exactly otherwise.
agalera commented
@tomchristie my code: https://github.com/kianxineki/apistar_boilerplate
UserModel is irrelevant (not sure 💃 ), I update first post.
views: https://github.com/kianxineki/apistar_boilerplate/blob/master/exampleapp/views/example.py
urls: https://github.com/kianxineki/apistar_boilerplate/blob/master/exampleapp/urls/example.py
app: https://github.com/kianxineki/apistar_boilerplate/blob/master/exampleapp/app.py
tomchristie commented
Closed via 4aee8b4
agalera commented
@tomchristie thx! fast fix!