Skip to content

Commit 9d4e849

Browse files
ECWID-105431 Allow nullable property rules for new SEO fields
1 parent d9143de commit 9d4e849

2 files changed

Lines changed: 10 additions & 9 deletions

File tree

src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/FetchedCategoryRules.kt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package com.ecwid.apiclient.v3.rule.nullablepropertyrules
33
import com.ecwid.apiclient.v3.dto.category.result.FetchedCategory
44
import com.ecwid.apiclient.v3.rule.NullablePropertyRule
55
import com.ecwid.apiclient.v3.rule.NullablePropertyRule.IgnoreNullable
6+
import com.ecwid.apiclient.v3.rule.NullablePropertyRule.AllowNullable
67

78
val fetchedCategoryNullablePropertyRules: List<NullablePropertyRule<*, *>> = listOf(
89
IgnoreNullable(FetchedCategory::description),
@@ -20,8 +21,8 @@ val fetchedCategoryNullablePropertyRules: List<NullablePropertyRule<*, *>> = lis
2021
IgnoreNullable(FetchedCategory::productIds),
2122
IgnoreNullable(FetchedCategory::thumbnailUrl),
2223
IgnoreNullable(FetchedCategory::url),
23-
IgnoreNullable(FetchedCategory::seoTitle),
24-
IgnoreNullable(FetchedCategory::seoTitleTranslated),
25-
IgnoreNullable(FetchedCategory::seoDescription),
26-
IgnoreNullable(FetchedCategory::seoDescriptionTranslated)
24+
AllowNullable(FetchedCategory::seoTitle),
25+
AllowNullable(FetchedCategory::seoTitleTranslated),
26+
AllowNullable(FetchedCategory::seoDescription),
27+
AllowNullable(FetchedCategory::seoDescriptionTranslated)
2728
)

src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/FetchedStoreProfileRules.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -270,11 +270,11 @@ val fetchedStoreProfileNullablePropertyRules: List<NullablePropertyRule<*, *>> =
270270
IgnoreNullable(FetchedStoreProfile.Settings::storeDescription),
271271
IgnoreNullable(FetchedStoreProfile.Settings::storeName),
272272
IgnoreNullable(FetchedStoreProfile.Settings::tikTokPixel),
273-
IgnoreNullable(FetchedStoreProfile.Settings::storeDescriptionTranslated),
274-
IgnoreNullable(FetchedStoreProfile.Settings::rootCategorySeoTitle),
275-
IgnoreNullable(FetchedStoreProfile.Settings::rootCategorySeoTitleTranslated),
276-
IgnoreNullable(FetchedStoreProfile.Settings::rootCategorySeoDescription),
277-
IgnoreNullable(FetchedStoreProfile.Settings::rootCategorySeoDescriptionTranslated),
273+
AllowNullable(FetchedStoreProfile.Settings::storeDescriptionTranslated),
274+
AllowNullable(FetchedStoreProfile.Settings::rootCategorySeoTitle),
275+
AllowNullable(FetchedStoreProfile.Settings::rootCategorySeoTitleTranslated),
276+
AllowNullable(FetchedStoreProfile.Settings::rootCategorySeoDescription),
277+
AllowNullable(FetchedStoreProfile.Settings::rootCategorySeoDescriptionTranslated),
278278
IgnoreNullable(FetchedStoreProfile.Shipping::handlingFee),
279279
IgnoreNullable(FetchedStoreProfile.Shipping::shippingOptions),
280280
IgnoreNullable(FetchedStoreProfile.Shipping::shippingOrigin),

0 commit comments

Comments
 (0)