You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
classType_Safe__To__Json(Type_Safe): # Converts Type_Safe classes to JSON Schema (draft-07 compatible)
@@ -14,6 +14,9 @@ class Type_Safe__To__Json(Type_Safe): # Converts Type_Safe classes to JSON
14
14
include_examples : bool=False
15
15
strict_mode : bool=False# If True, includes all Type_Safe constraints
16
16
17
+
# todo: the @type_safe here breaks some of the cache behaviour below since the @type_safe will
18
+
# convert the Dict to Type_Safe__Dict which means the returned objects are not the same (but from the cached value, so the performance implications might not be that big)
19
+
# (see if this has any side effects or main performance implications)
17
20
@type_safe
18
21
defconvert_class(self, type_safe_class : Type[Type_Safe] , # Type_Safe class to convert
0 commit comments