Skip to content

Commit 3e19180

Browse files
117503445Copilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 3a67ccc commit 3e19180

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/agentrun_cli/_utils/agentruntime_yaml.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,8 @@ def _as_string(value: Any, where: str) -> str:
283283
value: Field value.
284284
where: Path used in error messages.
285285
"""
286+
if isinstance(value, bool):
287+
raise YamlSchemaError(f"{where} must be a string or number.")
286288
if isinstance(value, (str, int, float)):
287289
return str(value)
288290
raise YamlSchemaError(f"{where} must be a string or number.")

0 commit comments

Comments
 (0)