Skip to content

Commit 01edf2c

Browse files
committed
Fix: remove schema generator
1 parent 0455da9 commit 01edf2c

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

lib/galaxy/webapps/openapi/utils.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,18 +63,16 @@ def get_openapi(
6363
all_fields = get_fields_from_routes(list(routes or []) + list(webhooks or []))
6464
model_name_map = get_compat_model_name_map(all_fields)
6565
schema_generator = schema_generator or GenerateJsonSchema(ref_template=REF_TEMPLATE)
66-
field_mapping, definitions = get_definitions(
66+
field_mapping, definitions = get_definitions( # type: ignore[call-arg]
6767
fields=all_fields,
68-
schema_generator=schema_generator,
6968
model_name_map=model_name_map,
7069
separate_input_output_schemas=separate_input_output_schemas,
7170
)
7271
for route in routes or []:
7372
if isinstance(route, routing.APIRoute):
74-
result = get_openapi_path(
73+
result = get_openapi_path( # type: ignore[call-arg]
7574
route=route,
7675
operation_ids=operation_ids,
77-
schema_generator=schema_generator,
7876
model_name_map=model_name_map,
7977
field_mapping=field_mapping,
8078
separate_input_output_schemas=separate_input_output_schemas,
@@ -89,10 +87,9 @@ def get_openapi(
8987
definitions.update(path_definitions)
9088
for webhook in webhooks or []:
9189
if isinstance(webhook, routing.APIRoute):
92-
result = get_openapi_path(
90+
result = get_openapi_path( # type: ignore[call-arg]
9391
route=webhook,
9492
operation_ids=operation_ids,
95-
schema_generator=schema_generator,
9693
model_name_map=model_name_map,
9794
field_mapping=field_mapping,
9895
separate_input_output_schemas=separate_input_output_schemas,

0 commit comments

Comments
 (0)