algoliasearch-client-swift icon indicating copy to clipboard operation
algoliasearch-client-swift copied to clipboard

Unknown parameter: explainModules

Open iludi95 opened this issue 1 year ago • 0 comments

Hello,

We are upgrading from InstantSearchClient 5.0 to AlgoliaSearchClient version 8.20.1, on iOS, and due of lackness of Explain Modules feature, in previous SDK, and documentation, we managed to make it work, setting a custom parameter up, on Query object.

Now, seems it is available on new Codable data model and, could be set as .set(\.explainModules, to: [.matchAlternatives]) on Query object but, when performing a request, backend responses with an status code of 400 with the next reason: "Unknown parameter: explainModules". We could made work it again setting it as custom parameter like so: .set("explain": .string(ExplainModule.matchAlternatives.rawValue)]).

Is an error with the CodingKey which should not be literally its name?

Thanks in advance

iludi95 avatar Apr 09 '24 15:04 iludi95