@carrot-foundation/schemas 0.4.1 → 0.4.2

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.cjs CHANGED
@@ -42,9 +42,14 @@ var NonNegativeFloatSchema = zod.z.number().min(0).meta({
42
42
  description: "Floating-point number that is zero or positive",
43
43
  examples: [0, 45.2, 72.5]
44
44
  });
45
- var WeightKgSchema = NonNegativeFloatSchema.meta({
45
+ var PositiveFloatSchema = zod.z.number().gt(0).meta({
46
+ title: "Positive Float",
47
+ description: "Floating-point number greater than zero",
48
+ examples: [0.1, 45.2, 72.5]
49
+ });
50
+ var WeightKgSchema = PositiveFloatSchema.meta({
46
51
  title: "Weight",
47
- description: "Weight measurement in kilograms (kg)",
52
+ description: "Weight measurement in kilograms (kg), must be greater than zero",
48
53
  examples: [500.35, 3e3]
49
54
  });
50
55
  var PercentageSchema = NonNegativeFloatSchema.max(100).meta({
@@ -29481,7 +29486,7 @@ function buildSchemaUrl(schemaPath) {
29481
29486
  return `${getSchemaBaseUrl()}/${cleanPath}`;
29482
29487
  }
29483
29488
  function getSchemaVersionOrDefault() {
29484
- return "0.4.1";
29489
+ return "0.4.2";
29485
29490
  }
29486
29491
 
29487
29492
  // src/shared/schema-validation.ts
@@ -32198,6 +32203,7 @@ exports.ParticipantIdHashSchema = ParticipantIdHashSchema;
32198
32203
  exports.ParticipantRoleSchema = ParticipantRoleSchema;
32199
32204
  exports.ParticipantSchema = ParticipantSchema;
32200
32205
  exports.PercentageSchema = PercentageSchema;
32206
+ exports.PositiveFloatSchema = PositiveFloatSchema;
32201
32207
  exports.PositiveIntegerSchema = PositiveIntegerSchema;
32202
32208
  exports.ReceiptIdentitySchema = ReceiptIdentitySchema;
32203
32209
  exports.RecordEnvironmentSchema = RecordEnvironmentSchema;