From: Ewoud Kohl van Wijngaarden Date: Fri, 17 May 2019 15:44:32 +0000 (+0000) Subject: Fix typo in api schema generation example X-Git-Tag: 0.12.0~4^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F518%2Fhead;p=thirdparty%2Fstarlette.git Fix typo in api schema generation example --- diff --git a/docs/schemas.md b/docs/schemas.md index 163ca1ca..5f0a2fb3 100644 --- a/docs/schemas.md +++ b/docs/schemas.md @@ -87,7 +87,7 @@ if __name__ == '__main__': if sys.argv[-1] == "run": uvicorn.run(app, host='0.0.0.0', port=8000) - elif sys.arvg[-1] == "schema": + elif sys.argv[-1] == "schema": schema = schemas.get_schema(routes=app.routes) print(yaml.dump(schema, default_flow_style=False)) ```