A lightweight utility for formatting class-validator validation errors into a cleaner, more readable structure. Version 0.0.3, no active release cadence. Key differentiator: transforms the complex ValidationError array from class-validator into a simple array of {field, message} objects, making it easier to display or process validation errors in applications.
npm install class-validator-message-formatterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates formatting class-validator validation errors into simplified {field, message} array.
Ensure input is the array returned by validate or validateSync.
This package is a helper for class-validator and does not replace it.
Use import { MessageFormatter } from 'class-validator-message-formatter' instead of import MessageFormatter from ...Run npm install class-validator-message-formatter and ensure no typo.
No dependency data recorded yet.