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
Dynamically create a `BaseDoc` class from a `schema` of another `BaseDoc`.
185
+
Dynamically create a `BaseDoc` subclass from a `schema` of another `BaseDoc`.
186
+
186
187
This method is intended to dynamically create a `BaseDoc` compatible with the schema
187
-
of another BaseDocthat is not available in the context. For instance, you may have stored the schema
188
-
as a JSON, or sent it to another service, etc ...
188
+
of another BaseDoc. This is useful when that other `BaseDoc` is not available in the current scope. For instance, you may have stored the schema
189
+
as a JSON, or sent it to another service, etc.
189
190
190
-
Due to this Pydantic limitation (https://docs.pydantic.dev/latest/blog/pydantic-v2/), we need to make sure that the
191
-
input schema uses `List` and not `DocList`, therefore this is recommended to be used in combination with `create_new_model_cast_doclist_to_list`
191
+
Due to this Pydantic limitation ### better link here, like above ### (https://docs.pydantic.dev/latest/blog/pydantic-v2/), we need to make sure that the
192
+
input schema uses `List` and not `DocList`. Therefore this is recommended to be used in combination with `create_new_model_cast_doclist_to_list`
192
193
to make sure that `DocLists` in schema are converted to `List`.
0 commit comments