isValidAsync
fun <T> isValidAsync(formSchema: Schema<T>, formValue: T, path: Path, externalContexts: ExternalContexts? = null, coroutineScope: CoroutineScope = GlobalScope): CompletableFuture<Boolean>
fun <T> isValidAsync(formSchema: Schema<T>, formValue: T, path: String, externalContexts: ExternalContexts? = null, coroutineScope: CoroutineScope = GlobalScope): CompletableFuture<Boolean>
Returns a future that completes with whether the parts of the form value formValue (with schema formSchema) matching path are valid according to the validator's schema.
These parts are said to be valid if they contain no validation errors.
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.
fun <T> isValidAsync(formSchema: Schema<T>, formValue: T, externalContexts: ExternalContexts? = null, coroutineScope: CoroutineScope = GlobalScope): CompletableFuture<Boolean>
Returns a future that completes with whether all parts of the form value formValue (with schema formSchema) are valid according to the validator's schema.
These parts are said to be valid if they contain no validation errors.
A map of externalContexts should be provided for validations that depend on them.