validateAsync

@JvmName(name = "validate")
fun <T> validateAsync(formSchema: Schema<T>, formValue: T, path: Path, externalContexts: ExternalContexts? = null, coroutineScope: CoroutineScope = GlobalScope): CompletableFuture<List<LocatedValidationIssue>>
@JvmName(name = "validate")
fun <T> validateAsync(formSchema: Schema<T>, formValue: T, path: String, externalContexts: ExternalContexts? = null, coroutineScope: CoroutineScope = GlobalScope): CompletableFuture<List<LocatedValidationIssue>>

Validates the parts of the form value formValue matching path against formSchema. Returns a future that completes with a list of found validation issues.

A map of external contexts may be provided for validations that depend on them.

The future will complete exceptionally with InvalidPathException if path matches no schemas.


@JvmName(name = "validate")
fun <T> validateAsync(formSchema: Schema<T>, formValue: T, externalContexts: ExternalContexts? = null, coroutineScope: CoroutineScope = GlobalScope): CompletableFuture<List<LocatedValidationIssue>>

Validates all parts of the form value formValue against formSchema. Returns a future that completes with a list of found validation issues.

A map of externalContexts should be provided for validations that depend on them.