Skip to content

fix: validate builder row output type#347

Open
charles-openclaw wants to merge 1 commit into
Wat-Street:mainfrom
charles-openclaw:validate-row-output-type
Open

fix: validate builder row output type#347
charles-openclaw wants to merge 1 commit into
Wat-Street:mainfrom
charles-openclaw:validate-row-output-type

Conversation

@charles-openclaw
Copy link
Copy Markdown

Summary

  • Validate that builder output passed to validate_rows() is a list before iterating it.
  • Raise ValidationError for non-dict row entries with the row index for clearer debugging.
  • Add focused tests for None, plain dict, and non-dict row inputs.

Fixes #326.

Verification

  • PATH="$HOME/.local/bin:$PATH" uv run pytest tests/core/runtime/test_validator.py
  • PATH="$HOME/.local/bin:$PATH" uv run mypy builders/server/core/runtime/validator.py builders/server/tests/core/runtime/test_validator.py
  • PATH="$HOME/.local/bin:$PATH" uvx ruff check builders/server/core/runtime/validator.py builders/server/tests/core/runtime/test_validator.py
  • git diff --check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

good first issue: validate builder output type in validate_rows

1 participant