validateExternallyAsync

@JvmName(name = "validateExternally")
fun <T> validateExternallyAsync(formSchema: Schema<T>, formValue: T, path: Path, externalValidations: ExternalValidations, externalContexts: ExternalContexts = emptyMap(), executor: Executor = Dispatchers.Default.asExecutor()): CompletableFuture<List<LocatedValidationIssue>>
@JvmName(name = "validateExternally")
fun <T> validateExternallyAsync(formSchema: Schema<T>, formValue: T, path: String, externalValidations: ExternalValidations, externalContexts: ExternalContexts = emptyMap(), executor: Executor = Dispatchers.Default.asExecutor()): 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.

Optionally provide an Executor to specify the threading model used for this function. By default, the kotlinx.coroutines Default thread pool is used. Pass Runnable::run as the executor to instead run this function in the calling thread.


@JvmName(name = "validateExternally")
fun <T> validateExternallyAsync(formSchema: Schema<T>, formValue: T, externalValidations: ExternalValidations, externalContexts: ExternalContexts = emptyMap(), executor: Executor = Dispatchers.Default.asExecutor()): 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.

Optionally provide an Executor to specify the threading model used for this function. By default, the kotlinx.coroutines Default thread pool is used. Pass Runnable::run as the executor to instead run this function in the calling thread.