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

Function getModelSchemaRef

packages/openapi-v3/src/controller-spec.ts:564–570  ·  view source on GitHub ↗
(
  modelCtor: Function & {prototype: T},
  options?: JsonSchemaOptions<T>,
)

Source from the content-addressed store, hash-verified

562 * @param options - Additional options
563 */
564export function getModelSchemaRef<T extends object>(
565 modelCtor: Function & {prototype: T},
566 options?: JsonSchemaOptions<T>,
567): SchemaRef {
568 const jsonSchema = getJsonSchemaRef(modelCtor, options);
569 return jsonToSchemaObject(jsonSchema) as SchemaRef;
570}

Callers 15

MixedControllerClass · 0.85
NoteControllerClass · 0.85
createMethod · 0.85
updateAllMethod · 0.85
updateByIdMethod · 0.85
bodyFunction · 0.85
modelFunction · 0.85
arrayFunction · 0.85
MyControllerClass · 0.85
TestControllerClass · 0.85

Calls 2

getJsonSchemaRefFunction · 0.90
jsonToSchemaObjectFunction · 0.90

Tested by 15

createMethod · 0.68
updateAllMethod · 0.68
updateByIdMethod · 0.68
createMethod · 0.68
patchMethod · 0.68
createMethod · 0.68
updateAllMethod · 0.68
updateByIdMethod · 0.68
createMethod · 0.68
updateAllMethod · 0.68
updateByIdMethod · 0.68
createMethod · 0.68