errorFieldFor method

String errorFieldFor(
  1. String wireKey
)

Map a raw wire validation key to the form field it should report on.

Identity by default, so setErrorsFromMap and setErrorsFromResponse keep raw dot-notation keys (e.g. items.0.name) as-is; changing that default would change behaviour for every existing app that mixes in ValidatesRequests. Mix in CollapsesIndexedErrorKeys on top when a form cannot address a specific list element and needs a numeric index collapsed onto its parent field instead.

Implementation

String errorFieldFor(String wireKey) => wireKey;