ballerina-core 1.0.91 → 1.0.92

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
@@ -2,7 +2,7 @@
2
2
  "name": "ballerina-core",
3
3
  "author": "Dr. Giuseppe Maggiore",
4
4
  "private": false,
5
- "version": "1.0.91",
5
+ "version": "1.0.92",
6
6
  "main": "main.ts",
7
7
  "scripts": {
8
8
  "prettier": "prettier --write ."
@@ -372,7 +372,12 @@ export const fromAPIRawValue =
372
372
  return ValueOrErrors.Default.return(PredicateValue.Default.unit());
373
373
  }
374
374
 
375
- if (!PredicateValue.Operations.IsPrimitive(raw)) {
375
+ if (
376
+ !PredicateValue.Operations.IsPrimitive(raw) &&
377
+ !injectedPrimitives?.injectedPrimitives
378
+ .keySeq()
379
+ .contains(t.value as keyof T)
380
+ ) {
376
381
  return ValueOrErrors.Default.throwOne(
377
382
  `primitive expected but got ${JSON.stringify(raw)}`,
378
383
  );