algolia / instantsearch-ios-examples

Example apps built with InstantSearch iOS
https://community.algolia.com/instantsearch-ios/
MIT License
66 stars 19 forks source link

Around Precision property has issue , when It assigned gives code 400 error #28

Closed vishalgspaceo closed 2 years ago

vishalgspaceo commented 2 years ago

When I try to assign a property called aroundPrecision , Query Response throws an error with code 400

I checked by assigning as below searcher.request.query.aroundPrecision = [.init(integerLiteral: 1000)]

Request of Query Would be &aroundLatLng=23.0321,72.5252&aroundRadius=50000&aroundPrecision=%5B%7B%22from%22:0.0,%22value%22:1000.0%7D%5D

Response of Query Would be

{
  "message" : "Invalid value for \"aroundPrecision\" parameter, expected valid JSON (Expecting an integer (near 1:13))",
  "status" : 400
}

I would love to know the solution of above problem

vishalgspaceo commented 2 years ago

@VladislavFitz is there any update on this issue ?

VladislavFitz commented 2 years ago

Hi @vishalgspaceo, Thank you for reporting this. It is basically the Swift API client issue, so I move your report there. I will investigate it in the coming days.