Enforce strict type validation and update config types
Enabled strict type checking in ValidatedConfigBase to fully disable type coercion. Updated MessageReceiveConfig and MemoryConfig fields from set/tuple to list types for compatibility with strict validation.
This commit is contained in:
@@ -142,6 +142,7 @@ class ValidatedConfigBase(BaseModel):
|
||||
"extra": "allow", # 允许额外字段
|
||||
"validate_assignment": True, # 验证赋值
|
||||
"arbitrary_types_allowed": True, # 允许任意类型
|
||||
"strict": True, # 如果设为 True 会完全禁用类型转换
|
||||
}
|
||||
|
||||
@classmethod
|
||||
|
||||
Reference in New Issue
Block a user