From f63d03c695ce39bd1a4d2fa3610df6a7018b135d Mon Sep 17 00:00:00 2001 From: nbro10 <106664639+nbro10@users.noreply.github.com> Date: Wed, 23 Oct 2024 11:18:14 +0200 Subject: [PATCH] Support use_enum_values in ConfigDict --- datamodel_code_generator/model/pydantic_v2/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/datamodel_code_generator/model/pydantic_v2/__init__.py b/datamodel_code_generator/model/pydantic_v2/__init__.py index f3756865..c4a5b729 100644 --- a/datamodel_code_generator/model/pydantic_v2/__init__.py +++ b/datamodel_code_generator/model/pydantic_v2/__init__.py @@ -23,6 +23,7 @@ class ConfigDict(_BaseModel): arbitrary_types_allowed: Optional[bool] = None protected_namespaces: Optional[Tuple[str, ...]] = None regex_engine: Optional[str] = None + use_enum_values: Optional[bool] = None __all__ = [