Skip to content

Commit

Permalink
Adjust price data validaiton rule
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentBean committed Feb 3, 2025
1 parent e32a704 commit 61c81a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Data/PriceData.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class PriceData extends Data
'tier_prices.*.website_id' => ['required', 'integer'],
'tier_prices.*.customer_group' => ['required', 'string'],
'tier_prices.*.price_type' => ['required', 'string'],
'tier_prices.*.quantity' => ['required', 'numeric'],
'tier_prices.*.quantity' => ['required', 'numeric', 'min:1'],
'tier_prices.*.price' => ['required', 'numeric'],

'special_prices' => ['nullable', 'array'],
Expand Down

0 comments on commit 61c81a7

Please sign in to comment.