chore: apply pep8-naming rules for naming convention (#8261)
This commit is contained in:
@@ -29,6 +29,7 @@ class OpenSearchConfig(BaseModel):
|
||||
secure: bool = False
|
||||
|
||||
@model_validator(mode="before")
|
||||
@classmethod
|
||||
def validate_config(cls, values: dict) -> dict:
|
||||
if not values.get("host"):
|
||||
raise ValueError("config OPENSEARCH_HOST is required")
|
||||
|
||||
Reference in New Issue
Block a user