Package-level declarations
Types
Link copied to clipboard
An error encountered during validation of a SchemaElement. The error is described by its concrete type with any of its additional fields, a human-readable message, and a scope which describes the location of the error in the schema.
Link copied to clipboard
The result of validating a SchemaElement. An absence of errors indicates that the element is valid, in which case isValid will be true.
Link copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Validates a SchemaDocument and returns the result as a ValidationResult.
Link copied to clipboard
fun ValidationScope.validate(condition: Boolean, error: ValidationScope.() -> ValidationError): ValidationResult
Link copied to clipboard
Link copied to clipboard
fun <T, U> ValidationScope.validateNoDuplicates(items: Iterable<T>, transform: (T) -> U, error: ValidationScope.(duplicate: T) -> ValidationError): ValidationResult
Link copied to clipboard