You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: verify snapshot crashes when format.json contains a non-object JSON value #746
uv run hflow verify snapshot /tmp/hflow-snapshot-repro
Expected behavior
The verifier should reject a non-object format.json with a concise invalid-input message and exit code 2.
Actual behavior
The command raises an unhandled exception and exits with code 1:
Traceback ...
File "/repo/src/hflow/snapshot.py", line 984, in verify_dataset_snapshot
found_format = format_marker.get("format")
AttributeError: 'list' object has no attribute 'get'
Definition of done
Validate that the top-level JSON value is an object before accessing its fields.
Return a clear invalid-input message and exit code 2.
Add CLI regression tests for top-level arrays, null, strings, and numbers.
Related: #575 covers malformed integrity.tables and integrity.assets values; this report concerns the top-level value in format.json.
Activity
github-actions commentedon Oct 28, 2026
👋 Hi @harsh21234i — thank you for opening your first issue on HFlow!
We appreciate you taking the time to report this. A maintainer will take a look as soon as possible.
In the meantime, feel free to:
We are glad to have you here! 🙌
fix(snapshot): reject non-object format markers (#746) (#747)