Lime Web Components API Documentation - v7.4.0
    Preparing search index...

    Interface ValidationError

    Describes a hierarchy of errors after validation has failed. The error object will have the same structure as the object being validated, e.g. each key in the error will have a corresponding key in the validated object.

    import { ValidationError } from '@limetech/lime-web-components';

    const errors: ValidationError = {
    name: ['Length can not be more than 15', 'Contains invalid characters'],
    address: {
    city: ['City does not exist'],
    zipcode: ['Invalid zipcode'],
    },
    };

    Indexable

    • [key: string]: ValidationError | string[]

      Name of the field the error belongs to