Skip to content

Commit 70e47c8

Browse files
committed
lint fix
Signed-off-by: Rakhi Dutta <rakhibiswas@yahoo.com>
1 parent 022ba89 commit 70e47c8

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

mcpgateway/admin.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11573,10 +11573,10 @@ async def admin_add_tool(
1157311573
"description": form.get("description"),
1157411574
"request_type": request_type,
1157511575
"integration_type": integration_type,
11576-
"headers": orjson.loads(headers_raw if isinstance(headers_raw, str) and headers_raw else "{}"),
11577-
"input_schema": orjson.loads(input_schema_raw if isinstance(input_schema_raw, str) and input_schema_raw else "{}"),
11578-
"output_schema": (orjson.loads(output_schema_raw) if isinstance(output_schema_raw, str) and output_schema_raw.strip() and output_schema_raw.strip() != "{}" else None),
11579-
"annotations": orjson.loads(annotations_raw if isinstance(annotations_raw, str) and annotations_raw else "{}"),
11576+
"headers": headers,
11577+
"input_schema": input_schema,
11578+
"output_schema": output_schema,
11579+
"annotations": annotations,
1158011580
"jsonpath_filter": form.get("jsonpath_filter", ""),
1158111581
"auth": auth_obj,
1158211582
"tags": tags,
@@ -11726,10 +11726,10 @@ async def admin_edit_tool(
1172611726
"custom_name": form.get("customName"),
1172711727
"url": form.get("url"),
1172811728
"description": form.get("description"),
11729-
"headers": orjson.loads(headers_raw2 if isinstance(headers_raw2, str) and headers_raw2 else "{}"),
11730-
"input_schema": orjson.loads(input_schema_raw2 if isinstance(input_schema_raw2, str) and input_schema_raw2 else "{}"),
11731-
"output_schema": (orjson.loads(output_schema_raw2) if isinstance(output_schema_raw2, str) and output_schema_raw2.strip() and output_schema_raw2.strip() != "{}" else None),
11732-
"annotations": orjson.loads(annotations_raw2 if isinstance(annotations_raw2, str) and annotations_raw2 else "{}"),
11729+
"headers": headers,
11730+
"input_schema": input_schema,
11731+
"output_schema": output_schema,
11732+
"annotations": annotations,
1173311733
"jsonpath_filter": form.get("jsonpathFilter", ""),
1173411734
"auth": auth_obj,
1173511735
"tags": tags,

0 commit comments

Comments
 (0)