diff --git a/src/state.py b/src/state.py index 25b26de..64d3ed4 100644 --- a/src/state.py +++ b/src/state.py @@ -39,10 +39,10 @@ def __init__(self, msg: str = ""): class Validator(BaseModel): - """Pydantic validator wrapper class for various attributes + """Pydantic validator wrapper class for various attributes. Attrs: - http_url_validator: assign a value to this attribute to validate it against pydantic's AnyHttpUrl type + http_url_validator: assign a value to this attribute to validate it against pydantic's AnyHttpUrl type. """ http_url_validator: AnyHttpUrl @@ -61,13 +61,13 @@ class JenkinsConfig(BaseModel): @validator("server_url") def valid_http_url(cls, server_url: str): - """Pydantic validator for server_url attribute in jenkins' config + """Pydantic validator for server_url attribute in jenkins' config. Args: - server_url: the server_url attribute to validate + server_url: the server_url attribute to validate. Returns: - the validated server_url attribute + the validated server_url attribute. """ _ = Validator(http_url_validator = server_url)