foundation-forms.getanyoferrormessage
Home > @genesislcap/foundation-forms > getAnyOfErrorMessage
getAnyOfErrorMessage() function
Computes a human-friendly anyOf error message for a given control path. Prefers UI schema custom message, then JSON schema errorMessage.anyOf, then a constructed fallback.
Signature:
getAnyOfErrorMessage: (errors: Array<any> | undefined, schema: any, controlPath: string | undefined, uiCustomMsg?: string) => string
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
errors |
Array<any> | undefined | |
|
schema |
any | |
|
controlPath |
string | undefined | |
|
uiCustomMsg |
string |
(Optional) |
Returns:
string