productInventorySchema top-level property

ObjectSchema productInventorySchema
final

Generated schema for ProductInventory Product inventory with comprehensive constraints

Implementation

final productInventorySchema = Ack.object({
  'sku': Ack.string().minLength(3).maxLength(50),
  'quantity': Ack.integer(),
  'unitPrice': Ack.double().min(0.01),
  'lastRestocked': Ack.string().matches(r'''^\d{4}-\d{2}-\d{2}$'''),
  'isAvailable': Ack.boolean(),
});