uncomment a custom error message

This commit is contained in:
Sina Atalay committed 2023-11-03 21:54:11 +01:00
1 parent 150636deb2
commit 6e34ff524d
1 file changed
+1 -1
+1 -1
View File
@@ -44,7 +44,7 @@ def user_friendly_errors(func: Callable) -> Callable:
# Translate Pydantic's error messages to make them more user-friendly
custom_error_messages_by_type = {
"url_scheme": "This is not a valid URL 😿",
# "string_type": "This is not a valid string 🤭",
"string_type": "This is not a valid string 🤭",
"missing": "This field is required, but it is missing 😆",
"literal_error": "Only the following values are allowed: {expected} 😒",
}