validateExternally

fun <T> validateExternally(formSchema: Schema<T>, formValue: T, path: Path, externalValidations: ExternalValidations, externalContexts: ExternalContexts? = null): Flow<LocatedValidationIssue>(source)
fun <T> validateExternally(formSchema: Schema<T>, formValue: T, path: String, externalValidations: ExternalValidations, externalContexts: ExternalContexts? = null): Flow<LocatedValidationIssue>(source)

Validates the parts of the form value formValue matching path with schema formSchema against a map of external validations externalValidations.

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.


fun <T> validateExternally(formSchema: Schema<T>, formValue: T, externalValidations: ExternalValidations, externalContexts: ExternalContexts? = null): Flow<LocatedValidationIssue>(source)

Validates all parts of the form value formValue with schema formSchema against a map of external validations externalValidations.

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

Throws

If an exception occurs while running a validation.