]> git.ipfire.org Git - thirdparty/starlette.git/commitdiff
Fix typo in api schema generation example 518/head
authorEwoud Kohl van Wijngaarden <ewoud@kohlvanwijngaarden.nl>
Fri, 17 May 2019 15:44:32 +0000 (15:44 +0000)
committerGitHub <noreply@github.com>
Fri, 17 May 2019 15:44:32 +0000 (15:44 +0000)
docs/schemas.md

index 163ca1ca2130b9064446364f0264e2ed9ea05c6d..5f0a2fb387333c3c99fb06f243a58cbe9e7c4c44 100644 (file)
@@ -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))
 ```