algolia / algoliasearch-client-kotlin

⚡️ A fully-featured and blazing-fast Kotlin/Android API client to interact with Algolia.
https://www.algolia.com/doc/api-client/getting-started/install/kotlin/
MIT License
59 stars 23 forks source link

fix(rule): add optional filters property to the rule consequence params #417

Closed Fluf22 closed 5 months ago

Fluf22 commented 6 months ago
Q A
Bug fix? yes
New feature? no
BC breaks? no
Related Issue Fix DI-1984
Need Doc update yes

Describe your change

Add a new OptionalFilters interface with a polymorphic serializer so they can be either a list of OptionalFilters or a String Add a new optionalFilters property in the rule Consequence class that is a List<OptionalFilters>

What problem is this fixing?

Rule consequence param optionalFilters weren't deserialized and could cause a crash if they were present in the request response