diff --git a/src/dso_api/dynamic_api/filters/openapi.py b/src/dso_api/dynamic_api/filters/openapi.py index fb35e88f3..af560c65a 100644 --- a/src/dso_api/dynamic_api/filters/openapi.py +++ b/src/dso_api/dynamic_api/filters/openapi.py @@ -11,7 +11,7 @@ from schematools.types import DatasetFieldSchema, DatasetTableSchema, Temporal from dso_api.dynamic_api.filters import parser -from dso_api.dynamic_api.filters.parser import QueryFilterEngine, ALLOWED_SCALAR_LOOKUPS +from dso_api.dynamic_api.filters.parser import ALLOWED_SCALAR_LOOKUPS, QueryFilterEngine RE_GEOJSON_TYPE = re.compile(r"^https://geojson\.org/schema/(?P[a-zA-Z]+)\.json$") @@ -101,15 +101,17 @@ def get_table_filter_params(table_schema: DatasetTableSchema) -> list[dict]: # lookups = ALLOWED_SCALAR_LOOKUPS[start.format or start.type] for lookup in lookups: - openapi_params.append({ - "name": name if lookup == "" else f"{name}[{lookup}]", - "in": "query", - # TODO: add description - "schema": { - "type": start.type, - "format": start.format, - }, - }) + openapi_params.append( + { + "name": name if lookup == "" else f"{name}[{lookup}]", + "in": "query", + # TODO: add description + "schema": { + "type": start.type, + "format": start.format, + }, + } + ) return openapi_params