CitrineInformatics/java-citrination-client

Deserialization issue with ReferenceQuery

Closed this issue · 0 comments

@kjaym I'm getting a deserialization issue when deserializaing a PifQuery with (empty) references:

com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "page" (class io.citrine.jcc.search.pif.query.core.ReferenceQuery), not marked as ignorable (20 known properties: "affiliations", "pages", "issn", "authors", "references", "offset", "title", "tags", "issue", "volume", "logic", "length", "editors", "url", "isbn", "journal", "acknowledgements" [truncated]])

I think the issue might be that the annotation for page has a getter whose property name is "page", but setter with name "pages". Was that intentional?