@cadenza.io/core 1.7.9 → 1.7.10

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/dist/index.d.mts CHANGED
@@ -366,7 +366,7 @@ declare class SignalParticipant extends SignalEmitter {
366
366
  destroy(): void;
367
367
  }
368
368
 
369
- type SchemaType = "string" | "number" | "boolean" | "array" | "object" | "null" | "any";
369
+ type SchemaType = "string" | "number" | "boolean" | "array" | "object" | "any";
370
370
  type SchemaConstraints = {
371
371
  min?: number;
372
372
  max?: number;
package/dist/index.d.ts CHANGED
@@ -366,7 +366,7 @@ declare class SignalParticipant extends SignalEmitter {
366
366
  destroy(): void;
367
367
  }
368
368
 
369
- type SchemaType = "string" | "number" | "boolean" | "array" | "object" | "null" | "any";
369
+ type SchemaType = "string" | "number" | "boolean" | "array" | "object" | "any";
370
370
  type SchemaConstraints = {
371
371
  min?: number;
372
372
  max?: number;
package/dist/index.js CHANGED
@@ -1346,6 +1346,12 @@ var Task = class extends SignalParticipant {
1346
1346
  if (key in properties) {
1347
1347
  const prop = properties[key];
1348
1348
  const propType = prop.type;
1349
+ if (propType === "any") {
1350
+ continue;
1351
+ }
1352
+ if ((value === void 0 || value === null) && !prop.strict) {
1353
+ continue;
1354
+ }
1349
1355
  if (propType === "string" && typeof value !== "string") {
1350
1356
  errors[`${path}.${key}`] = `Expected 'string' for '${key}', got '${typeof value}'`;
1351
1357
  } else if (propType === "number" && typeof value !== "number") {