Remove usage of MutableValidationReport where possible

Issue #14 resolved
James Navin created an issue

Most usages of the MutableValidationReport can be changed to merge operations (e.g. map/reduce with merge) and use of the ValidationReport#singleton() factory method.

Ideally we could remove as much of the report mutation as possible.

This may mean some work to make ValidationReport#merge more efficient - e.g create a view of the merged reports instead of creating a new list to store the messages.

Comments (3)

  1. James Navin reporter

    Use of the MutableValidationReport within a single method is fine. I would like to remove the pattern of passing a mutable report around to collect errors.

  2. Log in to comment