validate
suspend fun <TResult> validate(path: Path = AbsolutePath.MATCH_ALL, issuesHandler: IssuesHandler<TResult>): TResult(source)
suspend fun <TResult> validate(path: String, issuesHandler: IssuesHandler<TResult>): TResult(source)
Validates all values at paths matching path by running a function issuesHandler with the flow of all found validation issues. Returns the result of issuesHandler.
This method receives a lambda to ensure that no conflicting concurrent operations occur during the lifetime of said lambda.
Throws
If path matches no schema paths.
Validates all values at paths matching path and returns a list of all found validation issues.
Throws
If path matches no schema paths.