MCPcopy Create free account
hub / github.com/apache/fory / context

Function context

javascript/packages/core/test/schema-limit.test.js:33–54  ·  view source on GitHub ↗
(typeResolver = {}, config = {})

Source from the content-addressed store, hash-verified

31const { Type } = require("../dist/lib/typeInfo");
32
33function context(typeResolver = {}, config = {}) {
34 const fullConfig = {
35 compatible: true,
36 maxTypeFields: 512,
37 maxTypeMetaBytes: 4096,
38 maxAverageSchemaVersionsPerType: 3,
39 maxSchemaVersionsPerType: 1,
40 useSliceString: false,
41 ...config,
42 };
43 const resolver = {
44 config: fullConfig,
45 getSerializerById() {
46 return undefined;
47 },
48 getSerializerByName() {
49 return undefined;
50 },
51 ...typeResolver,
52 };
53 return new ReadContext(resolver, fullConfig);
54}
55
56function remoteStruct(
57 name,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected