fix: resolve CI/CD workflow issues
Some checks failed
CI / test (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / build (push) Has been cancelled

This commit is contained in:
2026-01-31 07:35:45 +00:00
parent 64e1563a9a
commit 464a574c1f

View File

@@ -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}."