in src/validators/swagger_request_models.py [0:0]
def validate_password(password: str) -> list[str]:
errors = []
upper = any(char.isupper() for char in password)
lower = any(char.islower() for char in password)
numeric = any(char.isdigit() for char in password)
symbol = any(not char.isalnum() for char in password)
if not upper:
errors.append('must have uppercase characters')
if not numeric:
errors.append('must have numeric characters')
if not lower:
errors.append('must have lowercase characters')
if not symbol:
errors.append('must have at least one symbol')
if len(password) < 8:
errors.append('valid min length for password: 8')
return errors