Skip to content

Commit cd20e61

Browse files
doc(promotions): DEVDOCS-6652 update regex to disallow 0.0 value
1 parent 1bcabc5 commit cd20e61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reference/promotions.v3.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1154,7 +1154,7 @@ components:
11541154
MaximumAllowedDiscountAmount:
11551155
type: string
11561156
nullable: true
1157-
pattern: '^(0|([1-9][0-9]*))(\.[0-9]+)?$'
1157+
pattern: '^(?!0+(?:\.0+)?$)(\d+)(\.[0-9]+)?$'
11581158
description: |
11591159
The maximum monetary value that can be applied as a discount. It can take value from 1 to 10000000.
11601160
The application of this maximum depends on the discount type:

0 commit comments

Comments
 (0)