fix: resolve CI/CD workflow issues
This commit is contained in:
@@ -132,7 +132,7 @@ class ErrorFormatter:
|
|||||||
actual_type = validator_error.get("found", "")
|
actual_type = validator_error.get("found", "")
|
||||||
return f"Expected type {expected_type}, but got {actual_type}."
|
return f"Expected type {expected_type}, but got {actual_type}."
|
||||||
elif validator == "enum":
|
elif validator == "enum":
|
||||||
allowed = ", ".join(validator_value) if isinstance(validator_value, list) else str(validator_value)
|
allowed = ", ".join(str(e) for e in validator_value) if isinstance(validator_value, list) else str(validator_value)
|
||||||
return f"Value must be one of: {allowed}"
|
return f"Value must be one of: {allowed}"
|
||||||
elif validator == "minimum":
|
elif validator == "minimum":
|
||||||
return f"Value must be greater than or equal to {validator_value}."
|
return f"Value must be greater than or equal to {validator_value}."
|
||||||
|
|||||||
Reference in New Issue
Block a user