Pip-Services-Commons-Dotnet
Public Member Functions | Properties | List of all members
PipServices3.Commons.Validate.ValidationResult Class Reference

Result generated by schema validation More...

Public Member Functions

 ValidationResult ()
 Creates a new instance of validation result. More...
 
 ValidationResult (string path, ValidationResultType type, string code, string message, object expected, object actual)
 Creates a new instance of validation result and sets its values. More...
 

Properties

string Path [get, set]
 
ValidationResultType Type [get, set]
 
string Code [get, set]
 
string Message [get, set]
 
object Expected [get, set]
 
object Actual [get, set]
 

Detailed Description

Result generated by schema validation

Constructor & Destructor Documentation

◆ ValidationResult() [1/2]

PipServices3.Commons.Validate.ValidationResult.ValidationResult ( )

Creates a new instance of validation result.

◆ ValidationResult() [2/2]

PipServices3.Commons.Validate.ValidationResult.ValidationResult ( string  path,
ValidationResultType  type,
string  code,
string  message,
object  expected,
object  actual 
)

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

Parameters
patha dot notation path of the validated element.
typea type of the validation result: Information, Warning, or Error.
codean error code.
messagea human readable message.
expectedan value expected by schema validation.
actualan actual value found by schema validation.

The documentation for this class was generated from the following file: