isValid

suspend fun isValid(formValue: T, path: Path, externalContexts: ExternalContexts? = null, runCriteria: ValidateRunCriteria = ValidateRunCriteria.ExternalIfInternalValid): Boolean(source)
suspend fun isValid(formValue: T, path: String, externalContexts: ExternalContexts? = null, runCriteria: ValidateRunCriteria = ValidateRunCriteria.ExternalIfInternalValid): Boolean(source)

Returns whether the parts of the form value formValue matching path are valid according to their schemas. 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.

Provide a run criteria to specify whether to run schema-internal and/or external validations. By default, external validations only run if no errors were found when running schema-internal validations.

Throws

If path matches no schemas.

If an exception occurs while running a validation.


suspend fun isValid(formValue: T, externalContexts: ExternalContexts? = null, runCriteria: ValidateRunCriteria = ValidateRunCriteria.ExternalIfInternalValid): Boolean(source)

Returns whether all parts of the form value formValue are valid according to their schemas. 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.

Provide a run criteria to specify whether to run schema-internal and/or external validations. By default, external validations only run if no errors were found when running schema-internal validations.

Throws

If an exception occurs while running a validation.