validate method

ValidationResults validate(
  1. dynamic instance, {
  2. bool parseJson = false,
  3. bool? validateFormats,
})

Validate instance against this schema, returning the result with information about any validation errors or warnings that occurred.

Implementation

ValidationResults validate(dynamic instance,
        {bool parseJson = false, bool? validateFormats}) =>
    Validator(this).validate(instance,
        reportMultipleErrors: true,
        parseJson: parseJson,
        validateFormats: validateFormats);