MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / loadSchema

Function loadSchema

tests/schema-validation.test.cjs:69–76  ·  view source on GitHub ↗
(schemaPath)

Source from the content-addressed store, hash-verified

67}
68
69function loadSchema(schemaPath) {
70 try {
71 const content = fs.readFileSync(schemaPath, 'utf8');
72 return JSON.parse(content);
73 } catch (error) {
74 throw new Error(`Failed to load schema ${schemaPath}: ${error.message}`);
75 }
76}
77
78function findAllSchemas(dir) {
79 const schemas = [];

Callers 2

runTestsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected