algolia / algoliasearch-client-java

⚡️ A fully-featured and blazing-fast Java API client to interact with Algolia.
https://www.algolia.com/doc/api-client/getting-started/install/java/
MIT License
47 stars 33 forks source link

feat: TimeRange: deserialize time as long #769

Closed BenoitPerrot closed 2 years ago

BenoitPerrot commented 2 years ago
Q A
Bug fix? no
New feature? no
BC breaks? no
Related Issue
Need Doc update no

Describe your change

Homogenize JSON deserialization of TimeRange with serialization, using long for timestamps.

What problem is this fixing?

Some customers build rules with an end date very far away in the future, which cannot be captured as number of seconds from epoch with an int.