@gxp-dev/tools 2.0.26 → 2.0.27
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.
|
@@ -82,12 +82,15 @@ function groupPathsByTag(openApiSpec) {
|
|
|
82
82
|
};
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
+
// Extract permission from x-permission.permission (singular)
|
|
86
|
+
const permission = pathInfo["x-permission"]?.permission;
|
|
87
|
+
|
|
85
88
|
tagGroups[tag].paths.push({
|
|
86
89
|
path: pathUrl,
|
|
87
90
|
method: method.toUpperCase(),
|
|
88
91
|
operationId: pathInfo.operationId || "",
|
|
89
92
|
summary: pathInfo.summary || "",
|
|
90
|
-
|
|
93
|
+
permission: permission || null,
|
|
91
94
|
});
|
|
92
95
|
}
|
|
93
96
|
}
|
|
@@ -681,8 +684,8 @@ async function addDependencyCommand(argv) {
|
|
|
681
684
|
// Collect all permissions from selected paths
|
|
682
685
|
const allPermissions = new Set();
|
|
683
686
|
for (const pathInfo of selectedPaths) {
|
|
684
|
-
|
|
685
|
-
allPermissions.add(
|
|
687
|
+
if (pathInfo.permission) {
|
|
688
|
+
allPermissions.add(pathInfo.permission);
|
|
686
689
|
}
|
|
687
690
|
}
|
|
688
691
|
|