Page Contents

Home > @loopback/rest > InfoSpecEnhancer

InfoSpecEnhancer class

An OpenAPI spec enhancer to populate info with application metadata (package.json).

Signature:

export declare class InfoSpecEnhancer implements OASEnhancer 

Constructors

Constructor Modifiers Description
(constructor)(pkg)   Constructs a new instance of the InfoSpecEnhancer class

Properties

Property Modifiers Type Description
name   string  
pkg   ApplicationMetadata | undefined  

Methods

Method Modifiers Description
modifySpec(spec)