Skip to content

Commit ab2859c

Browse files
committed
Updated API from documentation release
1 parent f308ced commit ab2859c

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

api-specs/import/types/common.raml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ types:
9999
(annotations.asMap):
100100
keyTypeHint: string
101101
properties:
102-
/^[a-z]{2}(-[A-Z]{2})?$/:
102+
/^[a-zA-Z]{2,3}(?:-[a-zA-Z]{4})?(?:-(?:[a-zA-Z]{2}|\d{3}))?$/:
103103
type: string
104104
description: |
105105
A localized string is a JSON object where the keys are of [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag), and the values the corresponding strings used for that language.

api-specs/import/types/customer-import.raml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ types:
217217
description: |
218218
Maps to `Customer.locale`.
219219
type: string
220+
pattern: ^[a-zA-Z]{2,3}(?:-[a-zA-Z]{4})?(?:-(?:[a-zA-Z]{2}|\d{3}))?$
220221
custom?:
221222
description: |
222223
The Custom Fields for this Customer.

api-specs/import/types/product-import.raml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ uses:
99
types:
1010
SearchKeywords:
1111
properties:
12-
/^[a-z]{2}(-[A-Z]{2})?$/:
12+
/^[a-zA-Z]{2,3}(?:-[a-zA-Z]{4})?(?:-(?:[a-zA-Z]{2}|\d{3}))?$/:
1313
type: SearchKeyword[]
1414
description: |
1515
Search keywords are primarily used by the suggester but are also considered for the full-text search. SearchKeywords is a JSON object where the keys are of [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag). The value to a language tag key is an array of SearchKeyword for the specific language.

0 commit comments

Comments
 (0)