Pip-Services-Commons-Dotnet
Classes | Enumerations
PipServices3.Commons.Validate Namespace Reference

Classes

class  AndRule
 Validation rule to combine rules with AND logical operation. When all rules returns no errors, than this rule also returns no errors. When one of the rules return errors, than the rules returns all errors. More...
 
class  ArraySchema
 Schema to validate arrays. More...
 
class  AtLeastOneExistsRule
 Validation rule that check that at least one of the object properties is not null. More...
 
class  ExcludedRule
 Validation rule to check that value is excluded from the list of constants. More...
 
class  FilterParamsSchema
 Schema to validate FilterParams. More...
 
class  IncludedRule
 Validation rule to check that value is included into the list of constants. More...
 
interface  IValidationRule
 Interface for validation rules. More...
 
class  MapSchema
 Schema to validate maps. More...
 
class  NotRule
 Validation rule negate another rule. When embedded rule returns no errors, than this rule return an error. When embedded rule return errors, than the rule returns no errors. More...
 
class  ObjectComparator
 Helper class to perform comparison operations over arbitrary values. More...
 
class  ObjectSchema
 Schema to validate user defined objects. More...
 
class  OnlyOneExistsRule
 Validation rule that check that at exactly one of the object properties is not null. More...
 
class  OrRule
 Validation rule to combine rules with OR logical operation. When one of rules returns no errors, than this rule also returns no errors. When all rules return errors, than the rule returns all errors. More...
 
class  PagingParamsSchema
 Schema to validate PagingParams. More...
 
class  ProjectionParamsSchema
 Schema to validate ProjectionParams. More...
 
class  PropertiesComparisonRule
 Validation rule that compares two object properties. More...
 
class  PropertySchema
 Schema to validate object properties More...
 
class  Schema
 Basic schema that validates values against a set of validation rules. More...
 
class  SortFieldSchema
 
class  SortParamsSchema
 
class  ValidationException
 Errors in schema validation. Validation errors are usually generated based in ValidationResult. If using strict mode, warnings will also raise validation exceptions. More...
 
class  ValidationResult
 Result generated by schema validation More...
 
class  ValueComparisonRule
 Validation rule that compares value to a constant. More...
 

Enumerations

enum  ValidationResultType : int { ValidationResultType.Information = 0, ValidationResultType.Warning = 1, ValidationResultType.Error = 2 }
 Types of validation results generated by validation schemas. More...
 

Enumeration Type Documentation

◆ ValidationResultType

Types of validation results generated by validation schemas.

See ValidationResult

Enumerator
Information 

General information (not an error).

Warning 

Warning about something suspecious. In strict mode is treated as error

Error 

Validation error.