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

Function buildIntertalSchema

src/mappers/record-schema.mapper.ts:36–45  ·  view source on GitHub ↗
(
  internalSchema: RecordIdInternalValidation[]
)

Source from the content-addressed store, hash-verified

34 : [];
35
36const buildIntertalSchema = (
37 internalSchema: RecordIdInternalValidation[]
38): InternalRecordValidationSchema =>
39 internalSchema.reduce(
40 (internalRecordValidations, [recordId, recordValidations]) => {
41 internalRecordValidations[recordId] = recordValidations;
42 return internalRecordValidations;
43 },
44 {}
45 );
46
47export const mapToInternalRecordValidationSchema = (
48 recordValidationSchema: RecordValidationSchema

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…