MCPcopy Create free account
hub / github.com/loopbackio/loopback-next / printJsonSchema

Function printJsonSchema

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

* Convert OpenAPI schema to JSON schema draft 7 and print it as a JavaScript * object literal * @param {object} oasSchema - OpenAPI schema

(oasSchema)

Source from the content-addressed store, hash-verified

298 * @param {object} oasSchema - OpenAPI schema
299 */
300function printJsonSchema(oasSchema) {
301 const jsonSchema = toJsonSchema(oasSchema);
302 return printSpecObject(jsonSchema);
303}
304
305module.exports = {
306 isExtension,

Callers 1

mapObjectTypeFunction · 0.85

Calls 2

toJsonSchemaFunction · 0.85
printSpecObjectFunction · 0.85

Tested by

no test coverage detected