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

Function isFieldIdInSchema

src/helpers/helpers.ts:42–45  ·  view source on GitHub ↗
(
  fieldId: string,
  schema: InternalFieldValidationSchema | InternalRecordValidationSchema
)

Source from the content-addressed store, hash-verified

40 : Promise.resolve(defaultResult);
41
42export const isFieldIdInSchema = (
43 fieldId: string,
44 schema: InternalFieldValidationSchema | InternalRecordValidationSchema
45): boolean => !isUndefinedOrNull(schema) && !isUndefinedOrNull(schema[fieldId]);
46
47export const hasFieldIdArrayValidator = (
48 fieldId: string,

Callers 4

helpers.spec.tsFile · 0.90
validateFieldFunction · 0.90
validateSingleRecordFunction · 0.90
hasFieldIdArrayValidatorFunction · 0.85

Calls 1

isUndefinedOrNullFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…