validateExternallyAsync

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

Validates the parts of the form value formValue matching path with schema formSchema against a map of external validations externalValidations. 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 = "validateExternally")
fun <T> validateExternallyAsync(formSchema: Schema<T>, formValue: T, externalValidations: ExternalValidations, externalContexts: ExternalContexts? = null, coroutineScope: CoroutineScope = GlobalScope): CompletableFuture<List<LocatedValidationIssue>>

Validates all parts of the form value formValue with schema formSchema against a map of external validations externalValidations. 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.