We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7909c0 commit cf8e701Copy full SHA for cf8e701
src/osw/model/static.py
@@ -92,6 +92,10 @@ class Config:
92
# Additional fields are ignored
93
validate_assignment = True
94
# Ensures that the assignment of a value to a field is validated
95
+ smart_union = True
96
+ # To avoid unexpected coercing of types, the smart_union option is enabled
97
+ # See: https://docs.pydantic.dev/1.10/usage/model_config/#smart-union
98
+ # Not required in v2 as this will become the new default
99
100
def __init__(self, **data):
101
if data.get("label"):
0 commit comments