isValid
suspend fun <T> isValid(formSchema: Schema<T>, formValue: T, path: Path, externalContexts: ExternalContexts? = null): Boolean(source)
suspend fun <T> isValid(formSchema: Schema<T>, formValue: T, path: String, externalContexts: ExternalContexts? = null): Boolean(source)
Returns whether the parts of the form value formValue (with schema formSchema) 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.
Throws
If path matches no schemas.
If an exception occurs while running a validation.
suspend fun <T> isValid(formSchema: Schema<T>, formValue: T, externalContexts: ExternalContexts? = null): Boolean(source)
Returns whether all parts of the form value formValue (with schema formSchema) 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.
Throws
If an exception occurs while running a validation.