Make v1 default api type for swagger generation

This commit is contained in:
Georg Krause 2022-07-18 10:29:20 +02:00
parent 0c0e3fa17f
commit cd76a9ec2a
No known key found for this signature in database
GPG Key ID: 2970D504B2183D22
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ class CustomApplicationTokenExt(OpenApiAuthenticationExtension):
def custom_preprocessing_hook(endpoints):
filtered = []
# your modifications to the list of operations that are exposed in the schema
api_type = os.environ["API_TYPE"]
api_type = os.environ.get("API_TYPE", "v1")
for (path, path_regex, method, callback) in endpoints:
if path.startswith("/api/v1/providers"):
continue