From ccd54d740ca31f350c9aafaf49e6911cd11dbe2e Mon Sep 17 00:00:00 2001 From: LuoChen Date: Tue, 6 Aug 2024 23:28:56 +0800 Subject: [PATCH] chore: [schema] deref add TODO --- src/ai_powered/schema_deref.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ai_powered/schema_deref.py b/src/ai_powered/schema_deref.py index 54afc82..90ca5ba 100644 --- a/src/ai_powered/schema_deref.py +++ b/src/ai_powered/schema_deref.py @@ -16,6 +16,8 @@ def deref(schema: dict[str, Any]) -> dict[str, Any]: } ''' + #TODO: 环状引用检测(递归类型,如 Nat,List) + defs = schema.get("$defs", {}) def _deref(schema: dict[str, Any]) -> dict[str, Any]: