* Added a wrapper for get_oas to throw spec info (#12) * Added tests generate_oas * Moved params to Application Co-authored-by: Спиненко Иван ispinenko@ussc.ru <ispinenko@ussc.ru>
This commit is contained in:
@@ -15,7 +15,7 @@ async def pet_not_found_to_404(request, handler):
|
||||
|
||||
|
||||
app = Application(middlewares=[pet_not_found_to_404])
|
||||
oas.setup(app)
|
||||
oas.setup(app, version_spec="1.0.1", title_spec="My App")
|
||||
|
||||
app["model"] = Model()
|
||||
app.router.add_view("/pets", PetCollectionView)
|
||||
|
||||
Reference in New Issue
Block a user