@gavdi/cap-mcp 0.10.0 → 0.10.1
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/lib/annotations/utils.js +2 -0
- package/package.json +1 -1
package/lib/annotations/utils.js
CHANGED
|
@@ -197,6 +197,8 @@ function parseOperationElements(annotations) {
|
|
|
197
197
|
*/
|
|
198
198
|
function parseEntityKeys(definition) {
|
|
199
199
|
const result = new Map();
|
|
200
|
+
if (!definition?.elements)
|
|
201
|
+
return result; // If there is no defined elements, we exit early
|
|
200
202
|
for (const [k, v] of Object.entries(definition.elements)) {
|
|
201
203
|
if (!v.key)
|
|
202
204
|
continue;
|