Skip to content
This repository was archived by the owner on Dec 10, 2021. It is now read-only.

Commit 34955c5

Browse files
authored
Merge pull request #49 from medikoo/patch-3
Do not rely on `serverless.variables`
2 parents 2e045cf + 28f289a commit 34955c5

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

Diff for: src/ServerlessOpenApiDocumentation.ts

+2-6
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,8 @@ interface Service {
2626
custom: CustomVars;
2727
}
2828

29-
interface Variables {
30-
service: Service;
31-
}
32-
3329
interface FullServerless extends Serverless {
34-
variables: Variables;
30+
service: Service;
3531
processedInput: ProcessedInput;
3632
}
3733

@@ -53,7 +49,7 @@ export class ServerlessOpenApiDocumentation {
5349
// pull the serverless instance into our class vars
5450
this.serverless = serverless;
5551
// Serverless service custom variables
56-
this.customVars = this.serverless.variables.service.custom;
52+
this.customVars = this.serverless.service.custom;
5753

5854
// Declare the commands this plugin exposes for the Serverless CLI
5955
this.commands = {

0 commit comments

Comments
 (0)