import { Validation } from '../models' ; import { mapReplace } from './string-utils' ; export function generateValidationError ( key , params , blueprint ) { return { key , params , message : mapReplace ( blueprint , params , true ) , } ; } export const defaultMapErrorsFn = ( errors ) => { return errors ; } ;