@voxgig/create-sdkgen 0.13.1 → 0.15.0
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voxgig/create-sdkgen",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"main": "dist/create-sdkgen.js",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"types": "dist/create-sdkgen.d.ts",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"LICENSE"
|
|
42
42
|
],
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@types/node": "25.
|
|
44
|
+
"@types/node": "25.8.0",
|
|
45
45
|
"memfs": "4.57.2",
|
|
46
46
|
"typescript": "6.0.3"
|
|
47
47
|
},
|
|
@@ -76,6 +76,8 @@ function makeEntityTestData(_model: Model, entity: ModelEntity) {
|
|
|
76
76
|
// with values that match what the test code sends via setup.idmap.
|
|
77
77
|
const pathParams = collectEntityPathParams(entity)
|
|
78
78
|
|
|
79
|
+
const hasEntId = null != (entity as any).id
|
|
80
|
+
|
|
79
81
|
let i = 1
|
|
80
82
|
|
|
81
83
|
refs.map((ref) => {
|
|
@@ -89,7 +91,12 @@ function makeEntityTestData(_model: Model, entity: ModelEntity) {
|
|
|
89
91
|
ent[paramName] = paramValue
|
|
90
92
|
}
|
|
91
93
|
}
|
|
92
|
-
|
|
94
|
+
// Only inject a fixture id when the spec actually models one for this
|
|
95
|
+
// entity. Public APIs (e.g. read-only feeds) without ids leave fixtures
|
|
96
|
+
// bare so test generators don't synthesise bogus id assertions.
|
|
97
|
+
if (hasEntId) {
|
|
98
|
+
ent.id = id
|
|
99
|
+
}
|
|
93
100
|
})
|
|
94
101
|
|
|
95
102
|
let id = entity.name + '_ref01'
|