@gavdi/cap-mcp 1.0.0 → 1.0.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 +1 -1
- package/package.json +1 -1
package/lib/annotations/utils.js
CHANGED
|
@@ -156,7 +156,7 @@ function determineResourceOptions(annotations) {
|
|
|
156
156
|
function parseResourceElements(definition) {
|
|
157
157
|
const properties = new Map();
|
|
158
158
|
const resourceKeys = new Map();
|
|
159
|
-
for (const [key, value] of Object.entries(definition.elements)) {
|
|
159
|
+
for (const [key, value] of Object.entries(definition.elements || {})) {
|
|
160
160
|
if (!value.type)
|
|
161
161
|
continue;
|
|
162
162
|
const parsedType = value.type.replace("cds.", "");
|