Page Contents
Home > @loopback/openapi-v3 > OASEnhancerService
OASEnhancerService class
An extension point for OpenAPI Spec enhancement This service is used for enhancing an OpenAPI spec by loading and applying one or more registered enhancers.
A typical use of it would be generating the OpenAPI spec for the endpoints on a server in the @loopback/rest module.
Signature:
export declare class OASEnhancerService
Constructors
| Constructor | Modifiers | Description |
|---|---|---|
|
Constructs a new instance of the |
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
|
|
OASEnhancerServiceOptions | undefined |
(Optional) An extension point should be able to receive its options via dependency injection. | |
|
Getter for |
Methods
| Method | Modifiers | Description |
|---|---|---|
|
Generate OpenAPI spec by applying ALL registered enhancers TBD: load enhancers by group names | ||
|
Apply a given enhancer’s merge function. Return the latest _spec. | ||
|
Find an enhancer by its name |