mirror of
https://github.com/p2p-ld/nwb-linkml.git
synced 2025-01-09 21:54:27 +00:00
one last model generation
This commit is contained in:
parent
dfb2f3701b
commit
8c76ce82c3
191 changed files with 191 additions and 191 deletions
|
@ -59,7 +59,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -65,7 +65,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -58,7 +58,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -76,7 +76,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -74,7 +74,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -77,7 +77,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -80,7 +80,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -59,7 +59,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -76,7 +76,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -65,7 +65,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -77,7 +77,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -69,7 +69,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -186,7 +186,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -59,7 +59,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -65,7 +65,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -58,7 +58,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -76,7 +76,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -74,7 +74,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -77,7 +77,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -80,7 +80,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -59,7 +59,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -76,7 +76,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -65,7 +65,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -77,7 +77,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -69,7 +69,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -186,7 +186,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -59,7 +59,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -65,7 +65,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -58,7 +58,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -76,7 +76,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -74,7 +74,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -77,7 +77,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -80,7 +80,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -59,7 +59,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -76,7 +76,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -65,7 +65,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -77,7 +77,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -59,7 +59,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -189,7 +189,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -59,7 +59,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -65,7 +65,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -58,7 +58,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -76,7 +76,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -74,7 +74,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -78,7 +78,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -80,7 +80,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -59,7 +59,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -76,7 +76,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -65,7 +65,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -83,7 +83,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -59,7 +59,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -196,7 +196,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -59,7 +59,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -65,7 +65,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -58,7 +58,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -76,7 +76,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -74,7 +74,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -78,7 +78,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -80,7 +80,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -59,7 +59,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -76,7 +76,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -65,7 +65,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -83,7 +83,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -59,7 +59,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -196,7 +196,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -60,7 +60,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -65,7 +65,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -58,7 +58,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -76,7 +76,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -74,7 +74,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -78,7 +78,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -80,7 +80,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -60,7 +60,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -76,7 +76,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -65,7 +65,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -83,7 +83,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -59,7 +59,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -213,7 +213,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -73,7 +73,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -65,7 +65,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -58,7 +58,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -76,7 +76,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -74,7 +74,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -86,7 +86,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -83,7 +83,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -60,7 +60,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -76,7 +76,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -65,7 +65,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -83,7 +83,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -59,7 +59,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -226,7 +226,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -84,7 +84,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -65,7 +65,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -58,7 +58,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -76,7 +76,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -74,7 +74,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -87,7 +87,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -83,7 +83,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -66,7 +66,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
|
@ -76,7 +76,7 @@ class ConfiguredBaseModel(BaseModel):
|
||||||
@field_validator("*", mode="wrap")
|
@field_validator("*", mode="wrap")
|
||||||
@classmethod
|
@classmethod
|
||||||
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
def cast_with_value(cls, v: Any, handler, info) -> Any:
|
||||||
"""Try to rescue instantiation by casting into the model's value fiel"""
|
"""Try to rescue instantiation by casting into the model's value field"""
|
||||||
try:
|
try:
|
||||||
return handler(v)
|
return handler(v)
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue