diff --git a/api-specs/api/types/approval-rule/ApproverConjunctionDraft.raml b/api-specs/api/types/approval-rule/ApproverConjunctionDraft.raml index fe670673f..f6a4e0fe0 100644 --- a/api-specs/api/types/approval-rule/ApproverConjunctionDraft.raml +++ b/api-specs/api/types/approval-rule/ApproverConjunctionDraft.raml @@ -6,7 +6,7 @@ properties: and: description: | All of the nested disjunctions must be approved in order for the conjunction to be considered approved. - The total count of approvers across the nested disjunctions must not exceed 10. type: array items: ApproverDisjunctionDraft minItems: 1 + maxItems: 10 diff --git a/api-specs/api/types/business-unit/Associate.raml b/api-specs/api/types/business-unit/Associate.raml index c31d37bf6..8018f341b 100644 --- a/api-specs/api/types/business-unit/Associate.raml +++ b/api-specs/api/types/business-unit/Associate.raml @@ -8,6 +8,7 @@ properties: type: AssociateRoleAssignment[] description: | Roles assigned to the Associate within a Business Unit. + maxItems: 5 roles?: (deprecated): true type: AssociateRoleDeprecated[] diff --git a/api-specs/api/types/business-unit/AssociateDraft.raml b/api-specs/api/types/business-unit/AssociateDraft.raml index 9b9ea013e..26fa79a74 100644 --- a/api-specs/api/types/business-unit/AssociateDraft.raml +++ b/api-specs/api/types/business-unit/AssociateDraft.raml @@ -7,6 +7,7 @@ properties: description: | Roles assigned to the Associate within a Business Unit. minItems: 1 + maxItems: 5 roles?: (deprecated): true type: AssociateRoleDeprecated[] diff --git a/api-specs/api/types/business-unit/BusinessUnit.raml b/api-specs/api/types/business-unit/BusinessUnit.raml index f101aaf66..74a730127 100644 --- a/api-specs/api/types/business-unit/BusinessUnit.raml +++ b/api-specs/api/types/business-unit/BusinessUnit.raml @@ -102,6 +102,7 @@ properties: type: Associate[] description: | Associates that are part of the Business Unit in specific [roles](ctp:api:type:AssociateRole). + maxItems: 2000 inheritedAssociates?: type: InheritedAssociate[] description: | diff --git a/api-specs/api/types/business-unit/BusinessUnitDraft.raml b/api-specs/api/types/business-unit/BusinessUnitDraft.raml index c1ee9cb22..3650bd1bd 100644 --- a/api-specs/api/types/business-unit/BusinessUnitDraft.raml +++ b/api-specs/api/types/business-unit/BusinessUnitDraft.raml @@ -52,6 +52,7 @@ properties: type: AssociateDraft[] description: | List of members that are part of the Business Unit in specific [roles](ctp:api:type:AssociateRole). + maxItems: 2000 approvalRuleMode?: type: BusinessUnitApprovalRuleMode description: | diff --git a/api-specs/api/types/business-unit/updates/BusinessUnitSetAssociatesAction.raml b/api-specs/api/types/business-unit/updates/BusinessUnitSetAssociatesAction.raml index 1e9cab635..4214c7788 100644 --- a/api-specs/api/types/business-unit/updates/BusinessUnitSetAssociatesAction.raml +++ b/api-specs/api/types/business-unit/updates/BusinessUnitSetAssociatesAction.raml @@ -10,4 +10,5 @@ properties: associates: type: AssociateDraft[] description: | - The new list of Associates. If not provided, any existing list is removed. + The new list of Associates. If empty, existing values will be removed. + maxItems: 2000 diff --git a/api-specs/api/types/cart/Cart.raml b/api-specs/api/types/cart/Cart.raml index 2f71f31c5..914d2c97f 100644 --- a/api-specs/api/types/cart/Cart.raml +++ b/api-specs/api/types/cart/Cart.raml @@ -155,6 +155,7 @@ properties: type: DiscountCodeInfo[] description: | Discount Codes applied to the Cart. A Cart that has `directDiscounts` cannot have `discountCodes`. + maxItems: 10 directDiscounts: type: DirectDiscount[] description: | diff --git a/api-specs/api/types/discount-code/DiscountCode.raml b/api-specs/api/types/discount-code/DiscountCode.raml index 5c584e747..cca8bda39 100644 --- a/api-specs/api/types/discount-code/DiscountCode.raml +++ b/api-specs/api/types/discount-code/DiscountCode.raml @@ -55,6 +55,7 @@ properties: type: CartDiscountReference[] description: | Reference to CartDiscounts that can be applied to the Cart once the DiscountCode is applied. + maxItems: 10 cartPredicate?: type: string description: | diff --git a/api-specs/api/types/product/ProductData.raml b/api-specs/api/types/product/ProductData.raml index 3d115ecf6..7419a7e24 100644 --- a/api-specs/api/types/product/ProductData.raml +++ b/api-specs/api/types/product/ProductData.raml @@ -48,6 +48,7 @@ properties: type: ProductVariant[] description: | Additional Product Variants. + maxItems: 100 searchKeywords: type: SearchKeywords description: | diff --git a/api-specs/api/types/product/ProductDraft.raml b/api-specs/api/types/product/ProductDraft.raml index 3d3752429..dcfa4f9e5 100644 --- a/api-specs/api/types/product/ProductDraft.raml +++ b/api-specs/api/types/product/ProductDraft.raml @@ -56,6 +56,7 @@ properties: type: ProductVariantDraft[] description: | The additional Product Variants for the Product. + maxItems: 100 taxCategory?: type: TaxCategoryResourceIdentifier description: | diff --git a/api-specs/api/types/product/ProductVariant.raml b/api-specs/api/types/product/ProductVariant.raml index 1789fc5ab..607a29bdb 100644 --- a/api-specs/api/types/product/ProductVariant.raml +++ b/api-specs/api/types/product/ProductVariant.raml @@ -26,6 +26,7 @@ properties: description: | The Embedded Prices of the Product Variant. Cannot contain two Prices of the same Price scope (with same currency, country, Customer Group, Channel, `validFrom` and `validUntil`). + maxItems: 100 attributes?: type: Attribute[] description: | diff --git a/api-specs/api/types/product/updates/ProductSetPricesAction.raml b/api-specs/api/types/product/updates/ProductSetPricesAction.raml index 48c6b4381..ebbad1b44 100644 --- a/api-specs/api/types/product/updates/ProductSetPricesAction.raml +++ b/api-specs/api/types/product/updates/ProductSetPricesAction.raml @@ -21,6 +21,7 @@ properties: description: | The Embedded Prices to set. Each Price must have its unique Price scope (with same currency, country, Customer Group, Channel, `validFrom` and `validUntil`). + maxItems: 100 staged?: type: boolean description: | diff --git a/api-specs/api/types/store/Store.raml b/api-specs/api/types/store/Store.raml index 29edd9aa0..3d2ad2618 100644 --- a/api-specs/api/types/store/Store.raml +++ b/api-specs/api/types/store/Store.raml @@ -55,10 +55,12 @@ properties: type: ChannelReference[] description: | Product Distribution Channels allowed for the Store. + maxItems: 100 supplyChannels: type: ChannelReference[] description: | Inventory Supply Channels allowed for the Store. + maxItems: 100 productSelections: type: ProductSelectionSetting[] description: |- @@ -68,6 +70,7 @@ properties: - If only `inactive` Product Selections with `IndividualExclusion` [ProductSelectionMode](ctp:api:type:ProductSelectionMode) are provided, all the Products are availlable in this Store. - If all the Product Selections provided are `inactive` and there's at least a Product Selection of mode `Individual`, no Product is availlable in this Store. - If at least an `active` Product Selection is provided, only `active` Product Selections are considered to compute the availlability in this Store. + maxItems: 100 custom?: type: CustomFields diff --git a/api-specs/api/types/store/StoreDraft.raml b/api-specs/api/types/store/StoreDraft.raml index 3c93cf69f..66dabd2ee 100644 --- a/api-specs/api/types/store/StoreDraft.raml +++ b/api-specs/api/types/store/StoreDraft.raml @@ -27,10 +27,12 @@ properties: type: ChannelResourceIdentifier[] description: | ResourceIdentifier of a Channel with `ProductDistribution` [ChannelRoleEnum](ctp:api:type:ChannelRoleEnum). + maxItems: 100 supplyChannels?: type: ChannelResourceIdentifier[] description: | ResourceIdentifier of a Channel with `InventorySupply` [ChannelRoleEnum](ctp:api:type:ChannelRoleEnum). + maxItems: 100 productSelections?: type: ProductSelectionSettingDraft[] description: | @@ -40,6 +42,7 @@ properties: - If only `inactive` Product Selections with `IndividualExclusion` [ProductSelectionMode](ctp:api:type:ProductSelectionMode) are provided, all the Products are available in this Store. - If all the Product Selections provided are `inactive` and there's at least a Product Selection of mode `Individual`, no Product is available in this Store. - If at least an `active` Product Selection is provided, only `active` Product Selections are considered to compute the availability in this Store. + maxItems: 100 custom?: type: CustomFieldsDraft diff --git a/api-specs/api/types/store/updates/StoreSetDistributionChannelsAction.raml b/api-specs/api/types/store/updates/StoreSetDistributionChannelsAction.raml index b770f02d4..bac79a585 100644 --- a/api-specs/api/types/store/updates/StoreSetDistributionChannelsAction.raml +++ b/api-specs/api/types/store/updates/StoreSetDistributionChannelsAction.raml @@ -14,3 +14,4 @@ properties: description: | Value to set. If not defined, the Store's `distributionChannels` are unset. + maxItems: 100 diff --git a/api-specs/api/types/store/updates/StoreSetProductSelectionsAction.raml b/api-specs/api/types/store/updates/StoreSetProductSelectionsAction.raml index d59b412ec..8ca064fe5 100644 --- a/api-specs/api/types/store/updates/StoreSetProductSelectionsAction.raml +++ b/api-specs/api/types/store/updates/StoreSetProductSelectionsAction.raml @@ -14,3 +14,4 @@ properties: - If provided, Product Selections for which `active` is set to `true` are available in the Store. - If not provided or provided as empty array, the action removes all Product Selections from this Store, meaning all Products in the [Project](ctp:api:type:Project) are available in this Store. + maxItems: 100 diff --git a/api-specs/api/types/store/updates/StoreSetSupplyChannelsAction.raml b/api-specs/api/types/store/updates/StoreSetSupplyChannelsAction.raml index 81f33b994..2f014d0e8 100644 --- a/api-specs/api/types/store/updates/StoreSetSupplyChannelsAction.raml +++ b/api-specs/api/types/store/updates/StoreSetSupplyChannelsAction.raml @@ -14,3 +14,4 @@ properties: description: | Value to set. If not defined, the Store's `supplyChannels` are unset. + maxItems: 100