We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9db7076 commit 24cdb88Copy full SHA for 24cdb88
src/deploy_tools/models/parent.py
@@ -2,6 +2,14 @@
2
3
4
class ParentModel(BaseModel):
5
- """Will forbid any extra parameters being provided in any subclass."""
+ """
6
+ Standard Model Config for all models in this project:
7
+ forbid: forbid any extra parameters being provided in any subclass.
8
+ use_enum_values: use the enum value only when serializing the model,
9
+ this means the yaml serializer can work with enums
10
11
- model_config = ConfigDict(extra="forbid", use_enum_values=True)
12
+ model_config = ConfigDict(
13
+ extra="forbid",
14
+ use_enum_values=True,
15
+ )
0 commit comments