ValidationResult constructor

ValidationResult([String path = null, ValidationResultType type = null, String code = null, String message = null, dynamic expected = null dynamic actual = null ])

Creates a new instance of validation ressult and sets its values.

  • path a dot notation path of the validated element.
  • type a type of the validation result: Information, Warning, or Error.
  • code an error code.
  • message a human readable message.
  • expected an value expected by schema validation.
  • actual an actual value found by schema validation.

See ValidationResultType