@voxgig/sdkgen 4.34.4 → 4.34.5
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/bin/voxgig-sdkgen
CHANGED
package/package.json
CHANGED
|
@@ -519,8 +519,11 @@ ${candidateLines}
|
|
|
519
519
|
for (label, extra) in streams {
|
|
520
520
|
let explain = VMap()
|
|
521
521
|
let streamed = ${Name}CleanTest.makeSdk(${Name}CleanTest.scenarios[0], box, nil, extra)
|
|
522
|
+
let reqmatch = VMap()
|
|
523
|
+
for p in target.params { reqmatch.entries[p] = .string("p1") }
|
|
522
524
|
XCTAssertNoThrow(try target.candidate.accessor(streamed).stream(
|
|
523
|
-
target.op,
|
|
525
|
+
target.op, vm(("reqmatch", .map(reqmatch))),
|
|
526
|
+
vm(("ctrl", .map(vm(("explain", .map(explain))))))), label + ": the stream should not fail")
|
|
524
527
|
XCTAssertFalse(explain.entries.isEmpty, label + ": the explain record was not filled")
|
|
525
528
|
box.sinks += ${Name}CleanTest.formsOf(label + ":explain", explain)
|
|
526
529
|
}
|
|
@@ -206,7 +206,8 @@ open class ProjectNameEntityBase: Entity {
|
|
|
206
206
|
"data": data,
|
|
207
207
|
]
|
|
208
208
|
if let a = args {
|
|
209
|
-
|
|
209
|
+
// The context reads reqmatch and reqdata as a VMap, never a Value.
|
|
210
|
+
for (k, v) in a.entries { ctxmap[k] = v.asMap ?? v }
|
|
210
211
|
}
|
|
211
212
|
|
|
212
213
|
let ctx = utility.makeContext(ctxmap, entctx)
|