serverless-openapi-documenter 0.0.91 → 0.0.92
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -946,6 +946,7 @@ class DefinitionGenerator {
|
|
|
946
946
|
)
|
|
947
947
|
return true;
|
|
948
948
|
};
|
|
949
|
+
|
|
949
950
|
const functionNames = this.serverless.service.getAllFunctions();
|
|
950
951
|
|
|
951
952
|
return functionNames
|
|
@@ -957,16 +958,14 @@ class DefinitionGenerator {
|
|
|
957
958
|
})
|
|
958
959
|
.map((functionType) => {
|
|
959
960
|
const event = functionType.events.filter(isHttpFunction);
|
|
960
|
-
const
|
|
961
|
-
`${this.serverless.service.service}-${this.serverless.service.provider.stage}-`
|
|
962
|
-
)[1];
|
|
961
|
+
const operationName = functionType.name.split("-").slice(-1).pop();
|
|
963
962
|
|
|
964
963
|
Object.assign(this.functionMap, {
|
|
965
|
-
[
|
|
964
|
+
[operationName]: [],
|
|
966
965
|
});
|
|
967
966
|
|
|
968
967
|
return {
|
|
969
|
-
operationName:
|
|
968
|
+
operationName: operationName,
|
|
970
969
|
functionInfo: functionType,
|
|
971
970
|
handler: functionType.handler,
|
|
972
971
|
name: functionType.name,
|