From 0fd52a08ce847f54d4e89cbcb1e3c0e685c1c791 Mon Sep 17 00:00:00 2001 From: HUANG SIZHE Date: Tue, 18 Jun 2024 18:08:03 +0800 Subject: [PATCH] Update utils.py --- schema_entry/utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/schema_entry/utils.py b/schema_entry/utils.py index a088524..f484e90 100644 --- a/schema_entry/utils.py +++ b/schema_entry/utils.py @@ -258,8 +258,10 @@ def replace_refs(d: Dict[str, Any]) -> Dict[str, Any]: del info["$defs"] return info + def pydantic_schema_to_protocol(schema: Dict[str, Any]) -> Dict[str, Any]: remove_sigal_allOf_schema = remove_sigal_allOf(schema) - remove_defs_interference_schema = remove_defs_interference(remove_sigal_allOf_schema) + remove_defs_interference_schema = remove_defs_interference( + remove_sigal_allOf_schema) new = replace_refs(remove_defs_interference_schema) return new