Skip to content

Commit 1113c2f

Browse files
authored
docs(catalog): CATALOG-11579 Incorrect max limit validation for brand url in CP UI (#1239)
<!-- Ticket number or summary of work --> # [CATALOG-11579] ## What changed? * Updated information about brand url validation to comply with actual behaviour ## Release notes draft Examples: * Updated information about brand url validation to comply with actual behaviour ## Anything else? <img width="1383" height="447" alt="Screenshot 2026-01-20 at 12 30 24" src="https://github.com/user-attachments/assets/c3cc1636-d77d-4b41-8833-641309770826" /> [CATALOG-11579]: https://bigcommercecloud.atlassian.net/browse/CATALOG-11579?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
1 parent 3378224 commit 1113c2f

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

docs/storefront/stencil/themes/context/object-reference/schemas/brand.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,7 @@ properties:
5353
type: object
5454
url:
5555
type: string
56-
description: URL of the brand page
56+
description: URL of the brand page. Only letters, numbers, dots (.), dashes (-), underscores (_), and forward slashes (/) are allowed. Must be 1-1024 characters, consisting of segments divided by "/". Each segment must be 1-256 characters.
57+
minLength: 1
58+
maxLength: 1024
59+
pattern: ^(\/([A-Za-z0-9\-_.]{1,256}))*\/?$

reference/catalog/brands_catalog.v3.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -346,10 +346,11 @@ paths:
346346
url:
347347
type: string
348348
description: |
349-
Brand URL on the storefront.
349+
Brand URL on the storefront. Only letters, numbers, dots (.), dashes (-), underscores (_), and forward slashes (/) are allowed. Must be 1-1024 characters, consisting of segments divided by "/". Each segment must be 1-256 characters.
350350
example: /shoes
351351
minLength: 1
352-
maxLength: 255
352+
maxLength: 1024
353+
pattern: ^(\/([A-Za-z0-9\-_.]{1,256}))*\/?$
353354
x-url: true
354355
is_customized:
355356
type: boolean
@@ -428,7 +429,7 @@ paths:
428429
url:
429430
type: string
430431
description: |
431-
Brand URL on the storefront.
432+
Brand URL on the storefront. Must be 1-1024 characters, consisting of segments divided by "/". Each segment must be 1-256 characters.
432433
example: /shoes
433434
x-url: true
434435
is_customized:
@@ -687,10 +688,11 @@ paths:
687688
url:
688689
type: string
689690
description: |
690-
Brand URL on the storefront.
691+
Brand URL on the storefront. Only letters, numbers, dots (.), dashes (-), underscores (_), and forward slashes (/) are allowed. Must be 1-1024 characters, consisting of segments divided by "/". Each segment must be 1-256 characters.
691692
example: /shoes
692693
minLength: 1
693-
maxLength: 255
694+
maxLength: 1024
695+
pattern: ^(\/([A-Za-z0-9\-_.]{1,256}))*\/?$
694696
x-url: true
695697
is_customized:
696698
type: boolean
@@ -774,7 +776,7 @@ paths:
774776
url:
775777
type: string
776778
description: |
777-
Brand URL on the storefront.
779+
Brand URL on the storefront. Must be 1-1024 characters, consisting of segments divided by "/". Each segment must be 1-256 characters.
778780
example: /shoes
779781
x-url: true
780782
is_customized:
@@ -1783,8 +1785,8 @@ components:
17831785
type: object
17841786
properties:
17851787
url:
1786-
maxLength: 255
1787-
minLength: 0
1788+
maxLength: 1024
1789+
minLength: 1
17881790
type: string
17891791
description: |
17901792
Product URL on the storefront.

0 commit comments

Comments
 (0)