From 20872d4a918123b9633c331ac14b541906b94185 Mon Sep 17 00:00:00 2001 From: Vitor Hideyoshi Date: Tue, 25 Nov 2025 22:26:28 -0300 Subject: [PATCH] feat: stabalizes the api for cached build using instance method --- jambo/schema_converter.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jambo/schema_converter.py b/jambo/schema_converter.py index 1ba52d6..4a10c2d 100644 --- a/jambo/schema_converter.py +++ b/jambo/schema_converter.py @@ -22,7 +22,7 @@ class SchemaConverter: ref_cache = dict() self._ref_cache = ref_cache - def build_with_instance( + def build_with_cache( self, schema: JSONSchema, ref_cache: Optional[RefCacheDict] = None, @@ -55,6 +55,7 @@ class SchemaConverter: ) -> type[BaseModel]: """ Converts a JSON Schema to a Pydantic model. + This method doesn't use a reference cache if none is provided. :param schema: The JSON Schema to convert. :param ref_cache: An optional reference cache to use during conversion, if provided `with_clean_cache` will be ignored. :return: The generated Pydantic model.