isValidExternally

suspend fun <T> isValidExternally(formSchema: Schema<T>, formValue: T, path: Path, externalValidations: ExternalValidations, externalContexts: ExternalContexts? = null): Boolean(source)
suspend fun <T> isValidExternally(formSchema: Schema<T>, formValue: T, path: String, externalValidations: ExternalValidations, externalContexts: ExternalContexts? = null): Boolean(source)

Returns whether the parts of the form value formValue (with schema formSchema) matching path are valid according to the provided external validations. 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.

Throws

If path matches no schemas.

If an exception occurs while running a validation.


suspend fun <T> isValidExternally(formSchema: Schema<T>, formValue: T, externalValidations: ExternalValidations, externalContexts: ExternalContexts? = null): Boolean(source)

Returns whether all parts of the form value formValue (with schema formSchema) are valid according to the provided external validations. 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.

Throws

If an exception occurs while running a validation.