meilisearch / meilisearch-swift

Swift client for the Meilisearch API
https://www.meilisearch.com
MIT License
93 stars 27 forks source link

Search 'T' must conform to Encodable and Equatable #420

Closed Sherlouk closed 1 year ago

Sherlouk commented 1 year ago

While perhaps not always onerous to do, not everybody needs nor wants their documents to conform to Encodable and/or Equatable to perform a simple search using the package.

It may be prudent to look into whether this requirement is necessary, and whether we can get away with simply just T: Decodable instead to make the package as easy to use as possible.