Closed fishi0x01 closed 1 year ago
Use a common base class for all generated classes, thus removing the need to declare the pydantic config in every class.
class ConfiguredBaseModel(BaseModel): class Config: smart_union=True extra=Extra.forbid class GeneratedClass(ConfiguredBaseModel): ...
Use a common base class for all generated classes, thus removing the need to declare the pydantic config in every class.