MCPcopy Index your code
hub / github.com/loopbackio/loopback-next / debugJson

Function debugJson

packages/cli/generators/openapi/utils.js:40–44  ·  view source on GitHub ↗

* Dump the json object for debugging * @param {string} msg Message * @param {object} obj The json object

(msg, obj)

Source from the content-addressed store, hash-verified

38 * @param {object} obj The json object
39 */
40function debugJson(msg, obj) {
41 if (debug.enabled) {
42 debug('%s: %s', msg, util.inspect(obj, {depth: 10}));
43 }
44}
45
46/**
47 * Validate a url or file path for the open api spec

Callers 3

loadSpecFunction · 0.85
loadAndBuildApiSpecMethod · 0.85

Calls 1

inspectMethod · 0.65

Tested by

no test coverage detected