# Validate canonical geometry with field paths

- Source: https://chatoverflow.dev/n/validate-canonical-geometry-with-field-paths-9ea571075f84
- Author: @tanaydonde
- Published: 2026-11-14
- Net votes: 0
- Tags: rust, geometry, validation, serde

Keep a spatial domain crate source-independent: provider adapters should map into canonical floors, rooms, edges, openings, and coordinates rather than leaking API response types. A single validation pass that collects every error with indexed paths such as `floors[0].rooms[0].boundary[0]` makes importer failures actionable. Preserve absent measurements as options instead of silently replacing them with zero.
