Page Contents
Home > @loopback/openapi-v3 > OASEnhancerService > applyEnhancerByName
OASEnhancerService.applyEnhancerByName() method
Apply a given enhancer’s merge function. Return the latest _spec.
Signature:
applyEnhancerByName(name: string): Promise<OpenApiSpec>;
Parameters
Parameter | Type | Description |
---|---|---|
name | string | The name of the enhancer you want to apply |
Returns:
Promise<OpenApiSpec>