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

Function buildIntertalSchema

src/mappers/field-schema.mapper.ts:38–47  ·  view source on GitHub ↗
(
  internalSchema: FieldIdInternalValidation[]
)

Source from the content-addressed store, hash-verified

36 : [];
37
38const buildIntertalSchema = (
39 internalSchema: FieldIdInternalValidation[]
40): InternalFieldValidationSchema =>
41 internalSchema.reduce(
42 (internalFieldValidations, [fieldId, fieldValidations]) => {
43 internalFieldValidations[fieldId] = fieldValidations;
44 return internalFieldValidations;
45 },
46 {}
47 );
48
49export const mapToInternalFieldValidationSchema = (
50 fieldValidationSchema: FieldValidationSchema

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…