fix: validator msg

This commit is contained in:
Diogo Sousa
2024-02-09 18:16:19 +00:00
parent d65a7a6adf
commit d408e6f0f2

View File

@@ -6,7 +6,7 @@ from typing import Optional
def check_single(v: Optional[str]) -> Optional[str]:
"""Check that string is not comma-separated string"""
if v and "," in v:
raise ValueError("multiple values are not allowed")
raise ValueError("comma-separated values are not allowed")
return v