Page Contents
Home > @loopback/openapi-v3 > SchemaRef
SchemaRef type
Custom LoopBack extension: a reference to Schema object that’s bundled inside definitions
property.
Signature:
export type SchemaRef = ReferenceObject & {
definitions: SchemasObject;
};
Example
const spec: SchemaRef = {
$ref: '/components/schemas/Product',
definitions: {
Product: {
title: 'Product',
properties: {
// etc.
}
}
}
}