Skip to content

Fix validator crash: column_for → find_by_property_id#13

Merged
ronaldtse merged 1 commit into
mainfrom
fix/validator-column-for
Jul 22, 2026
Merged

Fix validator crash: column_for → find_by_property_id#13
ronaldtse merged 1 commit into
mainfrom
fix/validator-column-for

Conversation

@ronaldtse

Copy link
Copy Markdown
Contributor

Summary

Validator::Runner#build_context called schema.column_for(base) — a method that doesn't exist on SheetSchema. The correct method is find_by_property_id (from the field-access seam, plan 26).

This caused Opencdd::Validator.run(db) to crash with NoMethodError on any entity whose schema was set (i.e., entities loaded from Parcel .xls files).

Discovery

Found during full-data validation against all 7 scraped dictionaries (24,675 entities). Parse and finalize worked correctly; the crash was specifically in the validator.

Test plan

  • All 7 dictionaries parse and finalize cleanly
  • Opencdd::Validator.run(db) no longer crashes on schema lookup

Validator::Runner#build_context called schema.column_for(base)
which doesn't exist on SheetSchema. The correct method is
find_by_property_id (added in plan 26's field-access seam).
This caused Opencdd::Validator.run to crash with NoMethodError
on any entity whose schema was set.
@ronaldtse
ronaldtse merged commit 472c974 into main Jul 22, 2026
@ronaldtse
ronaldtse deleted the fix/validator-column-for branch July 22, 2026 13:53
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.

1 participant