# Functions
Inherit schemaParameters: - base ISchemaBase base foe create new schema Returns *Schema.
Inherit schema with rulesParameters: - base ISchemaBase base foe create new schema - required bool true to always require non-null values.
Creates a new validation rule and sets its values.
Returns *ArraySchema.
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.
Creates a new validation rule and sets its values.
Creates a new instance of validation schema.
Creates a new validation rule and sets its values.
Creates a new instance of validation schema and sets its values.
Creates a new instance of validation schema and sets its values.
Creates a new validation rule and sets its values Parameters: - rule IValidationRule a rule to be negated.
Creates a new validation schema and sets its values.
Creates a new validation schema and sets its values.
Creates a new validation rule and sets its values Parameters: - properties ...string a list of property names where at only one property must exist Return *OnlyOneExistsRule.
Creates a new validation rule and ses its values Parameters: - rule IValidationRule a rule to be negaed.
Creates a new instance of validation schema.
Creates a new instance of validation schema.
Creates a new validation rule and sets its arguments.
Creates a new validation schema and sets its values.
Creates a new validation schema and sets its values.
Creates a new instance of validation schema and sets its values.
Creates a new instance of validation schema and sets its values.
Creates a new instance of validation schema.
Creates a new instance of validation exception and assigns its values.
Creates a new ValidationError based on errors in validation results.
Creates a new instance of validation ressult and sets its values.
Creates a new validation rule and sets its values.
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
No description provided by the author
# Structs
Validation rule to combine rules with AND logical operation.
Schema to validate arrays.
Validation rule that check that at least one of the object properties is not null.
Validation rule to check that value is excluded from the list of constants.
Validation rule to check that value is included into the list of constants.
Schema to validate maps.
Validation rule negate another rule.
// Schema to validate user defined objects.
Validation rule that check that at exactly one of the object properties is not null.
alidation rule to combine rules with OR logical operation.
Validation rule that compares two object properties.
Schema 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
*/.
Basic schema that validates values against a set of validation rules.
Helper class to perform comparison operations over arbitrary values.
Result generated by schema validation
*/.
Validation rule that compares value to a constant.
# Interfaces
Validation schema interface
*/.
No description provided by the author
Interface for validation rules.
# Type aliases
Types of validation results generated by validation schemas.