File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,11 @@ class DefinitionGenerator {
3939 } ,
4040 } ;
4141
42- this . schemaHandler = new SchemaHandler ( serverless , this . openAPI ) ;
42+ this . schemaHandler = new SchemaHandler (
43+ serverless ,
44+ this . openAPI ,
45+ this . logger
46+ ) ;
4347
4448 this . operationIdMap = { } ;
4549 this . functionMap = { } ;
Original file line number Diff line number Diff line change @@ -8,7 +8,9 @@ const SchemaConvertor = require("json-schema-for-openapi");
88const { v4 : uuid } = require ( "uuid" ) ;
99
1010class SchemaHandler {
11- constructor ( serverless , openAPI ) {
11+ constructor ( serverless , openAPI , logger ) {
12+ this . logger = logger ;
13+
1214 this . apiGatewayModels =
1315 serverless . service ?. provider ?. apiGateway ?. request ?. schemas || { } ;
1416 this . documentation = serverless . service . custom . documentation ;
@@ -19,6 +21,12 @@ class SchemaHandler {
1921 this . __standardiseModels ( ) ;
2022
2123 try {
24+ this . logger . verbose (
25+ `Trying to resolve Ref-Parser config from: ${ path . resolve (
26+ "options" ,
27+ "ref-parser.js"
28+ ) } `
29+ ) ;
2230 this . refParserOptions = require ( path . resolve ( "options" , "ref-parser.js" ) ) ;
2331 } catch ( err ) {
2432 this . refParserOptions = { } ;
You can’t perform that action at this time.
0 commit comments