Skip to content

Commit e9019ee

Browse files
authored
Fix #95: renamed to avoid shadowing the BaseModel.validate() method (#97)
* Fix #95: Renamed to avoid shadowing the BaseModel.validate() method Signed-off-by: sushant-suse <[email protected]> * Fix #95: renamed to validation Signed-off-by: sushant-suse <[email protected]> --------- Signed-off-by: sushant-suse <[email protected]>
1 parent 34e6a2c commit e9019ee

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

  • src/docbuild/models/config_model

src/docbuild/models/config_model/app.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,12 @@ class FormatterConfig(BaseModel):
2323
class_name: str | None = Field(None, alias='class',
2424
description='The fully qualified name of the handler class',
2525
)
26-
validate: bool | None = None
26+
# Renamed to avoid shadowing the BaseModel.validate() method.
27+
validation: bool | None = Field(
28+
None,
29+
alias='validate', # IMPORTANT: Keep the original key name for external config files
30+
description='If specified, controls whether configuration is validated.'
31+
)
2732

2833

2934
class HandlerConfig(BaseModel):

0 commit comments

Comments
 (0)