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 

Implements: OASEnhancer

Constructors

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

Properties

Property Modifiers Type Description
name   string  
pkg? readonly ApplicationMetadata | undefined (Optional)

Methods

Method Modifiers Description
modifySpec(spec)