MCPcopy Create free account
hub / github.com/agentic-commerce-protocol/agentic-commerce-protocol / warn

Function warn

scripts/validate-consistency.js:121–127  ·  view source on GitHub ↗
(message, context = {})

Source from the content-addressed store, hash-verified

119}
120
121function warn(message, context = {}) {
122 warnings.push({ message, ...context });
123 console.warn(`⚠️ WARNING: ${message}`);
124 if (Object.keys(context).length > 0) {
125 console.warn(` Context:`, JSON.stringify(context, null, 2));
126 }
127}
128
129function success(message) {
130 console.log(`✅ ${message}`);

Callers 4

validateJsonSchemaSyntaxFunction · 0.85
validateOpenApiSyntaxFunction · 0.85
validateModelExamplesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected