make swagger valid

This commit is contained in:
Jan Friedli 2020-07-14 00:19:05 +02:00
parent b067440923
commit 42f9ede4bf
No known key found for this signature in database
GPG key ID: F945FA2FCA30549D

View file

@ -31,9 +31,7 @@ def create_app(test_config=None):
app.json_encoder = LazyJSONEncoder
template = dict(
swaggerUiPrefix=LazyString(lambda: request.environ.get('HTTP_X_SCRIPT_NAME', '')),
schemes=['https', 'http'],
version='1',
host=LazyString(lambda: request.host),
basePath='/',
info={