Implements Better String Tests

This commit is contained in:
2025-04-12 19:37:53 -03:00
parent ec9171ba8f
commit 76b40847ce
3 changed files with 116 additions and 14 deletions

View File

@@ -24,7 +24,7 @@ class StringTypeParser(GenericTypeParser):
if not isinstance(default_value, str):
raise ValueError(
f"Default value for {name} must be a string, "
f"but got {type(properties['default'])}."
f"but got <{type(properties['default']).__name__}>."
)
if len(default_value) > properties.get("maxLength", float("inf")):