# Functions
InheritSchema inherit schema Parameters: base ISchemaBase base foe create new schema Returns: *Schema.
InheritSchemaWithRules inherit schema with rules Parameters: - base ISchemaBase base foe create new schema - required bool true to always require non-null values.
NewAndRule creates a new validation rule and sets its values.
NewArraySchema creates a new instance of validation schema and sets its values.
NewAtLeastOneExistsRule creates a new validation rule and sets its values Parameters: properties ...string a list of property names where at least one property must exist Returns: *AtLeastOneExistsRule.
NewExcludedRule creates a new validation rule and sets its values.
NewFilterParamsSchema creates a new instance of validation schema.
NewIncludedRule creates a new validation rule and sets its values.
NewMapSchema creates a new instance of validation schema and sets its values.
NewMapSchemaWithRules creates a new instance of validation schema and sets its values.
NewNotRule creates a new validation rule and sets its values Parameters: rule IValidationRule a rule to be negated.
NewObjectSchema creates a new validation schema and sets its values.
NewObjectSchemaWithRules creates a new validation schema and sets its values.
NewOnlyOneExistsRule creates a new validation rule and sets its values Parameters: properties ...string a list of property names where at only one property must exist Returns: *OnlyOneExistsRule.
NewOrRule creates a new validation rule and ses its values Parameters: rule IValidationRule a rule to be negated.
NewPagingParamsSchema creates a new instance of validation schema.
NewProjectionParamsSchema creates a new instance of validation schema.
NewPropertiesComparisonRule creates a new validation rule and sets its arguments.
Creates a new validation schema and sets its values.
NewPropertySchemaWithRules creates a new validation schema and sets its values.
NewSchema creates a new instance of validation schema and sets its values.
NewSchemaWithRules creates a new instance of validation schema and sets its values.
NewTokenizedPagingParamsSchema creates a new instance of validation schema.
NewValidationError creates a new instance of validation exception and assigns its values.
NewValidationErrorFromResults creates a new ValidationError based on errors in validation results.
NewValidationResult creates a new instance of validation ressult and sets its values.
NewValueComparisonRule creates a new validation rule and sets its values.
ThrowValidationErrorIfNeeded throws ValidationException based on errors in validation results.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
ObjectComparator Helper class to perform comparison operations over arbitrary values.
# Structs
AndRule validation rule to combine rules with AND logical operation.
ArraySchema to validate arrays.
AtLeastOneExistsRule validation rule that check that at least one of the object properties is not null.
ExcludedRule validation rule to check that value is excluded from the list of constants.
IncludedRule validation rule to check that value is included into the list of constants.
MapSchema to validate maps.
NotRule validation rule negate another rule.
ObjectSchema to validate user defined objects.
OnlyOneExistsRule validation rule that check that at exactly one of the object properties is not null.
OrRule validation rule to combine rules with OR logical operation.
PropertiesComparisonRule validation rule that compares two object properties.
PropertySchema to validate object properties see ObjectSchema Example var schema = NewObjectSchema() .WithProperty(NewPropertySchema("id", TypeCode.String)); schema.Validate({ id: "1", name: "ABC" }); // Result: no errors schema.Validate({ name: "ABC" }); // Result: no errors schema.Validate({ id: 1, name: "ABC" }); // Result: id type mismatch.
Schema basic schema that validates values against a set of validation rules.
ValidationResult result generated by schema validation.
ValueComparisonRule validation rule that compares value to a constant.
# Interfaces
ISchema validation schema interface.
No description provided by the author
IValidationRule interface for validation rules.
# Type aliases
ValidationResultType types of validation results generated by validation schemas.