Skip to content

Commit

Permalink
Update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
rahinisrinivas committed Sep 6, 2024
1 parent 31a3d24 commit 79c5945
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 4 additions & 2 deletions changelog/2024/2024-09-05-changelog.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
---
title: 'Copy exclusions between the Conditions and Actions'
title: 'Copy exclusions between the Conditions and Actions, Introducing `unique_case_insensitivity` field for string validation'
date: '2024-09-05'
tags: ['Commerce Manager', 'Promotions Builder']
tags: ['Commerce Manager', 'Promotions Builder', 'Commerce Extensions']
hide_blog_post_date: false
---

**MINOR** We have added the `unique_case_insensitivity` field for string validation to control whether or not case differences, for example, ABC vs. abc, are treated as conflicting when `unique` is set to `yes`. For more information, see [String Validation](/docs/api/commerce-extensions/custom-fields#string-validation).

**MINOR** Commerce Manager: We have added the capability to copy exclusions between the **Actions** and **Conditions** sections in the Promotions Builder. For more information, see [Creating a Promotion in Promotions Builder](/docs/commerce-manager/promotions-builder/creating-a-promotion-in-promotions-builder).

<iframe class="vidyard-player-embed" title="Elastic Path _ Commerce Manager - Copy Exclusions" src="//play.vidyard.com/4fYiP1QhLqAao3QQRyDeyN.html?" width="100%" height="540" scrolling="no" frameborder="0" allowtransparency="true" allowfullscreen="true" referrerpolicy="no-referrer-when-downgrade"></iframe>
8 changes: 4 additions & 4 deletions openapispecs/commerceextensions/OpenAPISpec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,11 @@ tags:
The `float` field_type cannot accurately represent some numbers and so using very small or large numbers might lose precision. We recommend that API clients use either the `integer` field_type if applicable , or the `string` data type if perfect precision or recall is required.
### String Validation
- `min_length`: Specifies the minimum number of characters that can be stored. If set, it must be less than 0 and less than `max_length`.
- `max_length`: Specifies the maximum number of characters that can be stored. If set, it must be greater than 0 and `min_length`.
- `regex`: [RE2](https://github.com/google/re2/wiki/Syntax) regular expression that used to restrict the specific characters that can be stored. This must be less than 1024 characters.
- `min_length`: Specifies the minimum number of characters allowed. If set, it must be greater than 0 and less than `max_length`.
- `max_length`: Specifies the maximum number of characters allowed. If set, it must be greater than 0 and `min_length`.
- `regex`: A [RE2](https://github.com/google/re2/wiki/Syntax) regular expression used to restrict the specific characters. It must be less than 1024 characters.
- `unique`: Specifies whether the field must have unique constraint or not. It must be `yes` or `no`.
- `unique_case_insensitivity`: For fields with `unique` set to `yes`, controls whether or not values with different cases (e.g., `ABC` and `abc`) should conflict. It must be true or false.
- `unique_case_insensitivity`: Applies when `unique` is set to `yes`. It controls whether values with different cases (for example, `ABC` and `abc`) should conflict. It must be `true` or `false`.
sample string validation object:
```json
Expand Down

0 comments on commit 79c5945

Please sign in to comment.