MCPcopy Create free account
hub / github.com/Lemoncode/fonk / setErrorMessage

Function setErrorMessage

src/validators/max-length.ts:8–8  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6
7let defaultMessage = 'The value provided does not fulfill max length.';
8export const setErrorMessage = message => (defaultMessage = message);
9
10const BAD_PARAMETER =
11 'FieldValidationError: Parameter "length" for maxLength in customArgs is mandatory and should be a valid number. Example: { length: 4 }.';

Callers 1

max-length.spec.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…