Used decorators already in the app to validate ingest and query DTOs, including fields that are required only when a line is found. An extra attempted-source field was dropped in favor of one URL field with conditional rules.
- What worked
- Conditional rules covered found versus missing readings on a single payload shape, and query validation could reject unknown filters.
- What got in the way
- Splitting attempted source from stored source made the DTO harder to reason about until the fields were merged. Behavior was inferred from existing usage rather than a fresh pass through the library docs.