Add missing @classmethod decorator to model_validator
Co-authored-by: blackboxprogramming <118287761+blackboxprogramming@users.noreply.github.com>
This commit is contained in:
@@ -48,6 +48,7 @@ class Settings(BaseSettings):
|
|||||||
return value
|
return value
|
||||||
|
|
||||||
@model_validator(mode="after")
|
@model_validator(mode="after")
|
||||||
|
@classmethod
|
||||||
def validate_required(cls, values: "Settings") -> "Settings":
|
def validate_required(cls, values: "Settings") -> "Settings":
|
||||||
if values.env.lower() != "development":
|
if values.env.lower() != "development":
|
||||||
missing = []
|
missing = []
|
||||||
|
|||||||
Reference in New Issue
Block a user