manticoresoftware / manticoresearch-java

Official Java client for Manticore Search
MIT License
41 stars 5 forks source link

Add field warning to SearchResponse #4

Open vsmid opened 3 years ago

vsmid commented 3 years ago

Deserialization of SearchResponse fails with:

Caused by: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "warning" (class com.manticoresearch.client.model.SearchResponse), not marked as ignorable (4 known properties: "hits", "profile", "timed_out", "took"])

without warning field in SearchResponse.

This PR adds the missing field(property).

sanikolaev commented 2 years ago

Related discussion on Manticore's forum https://forum.manticoresearch.com/t/manticore-client-manticoresearch-java/910/2

sanikolaev commented 2 years ago

@vsmid

Since we use openapi clients generator to generate this client please make a PR to it, not to the client directly.