diff --git a/api/utils/db.py b/api/utils/db.py index 9cb8c6515..c574c1278 100644 --- a/api/utils/db.py +++ b/api/utils/db.py @@ -31,6 +31,7 @@ def get_ar_guid(request: Request) -> str | None: def get_extra_audit_log_values(request: Request) -> dict | None: + """Get a JSON encoded dictionary from the 'sm-extra-values' header if it exists""" headers = request.headers.get('sm-extra-values') if not headers: return None diff --git a/openapi-templates/api_client.mustache b/openapi-templates/api_client.mustache index aa3fe689d..cf7296202 100644 --- a/openapi-templates/api_client.mustache +++ b/openapi-templates/api_client.mustache @@ -47,7 +47,7 @@ def get_select_env_values(): value = os.getenv(env_key) if value: as_map[dict_key] = value - + return as_map