SpeciesAPI suggest do not return class value
Hi,
http://api.gbif.org/v1/species/suggest?datasetKey=d7dddbf4-2cf0-4f39-9b2a-bb... does not return class, i.e. clazz value, unlike as it did in v0.9 era. Is it what intended, or by acceident?
Cheers, Jame
Hi,
http://api.gbif.org/v1/species/suggest?datasetKey=d7dddbf4-2cf0-4f39-9b2a-bb... does not return class, i.e. clazz value, unlike as it did in v0.9 era. Is it what intended, or by acceident?
It's wrong. class exists at the end of record. Jackson has difficulty to handle the class field, although it did previously (when it was between phylum and order). Strange....
Cheers, James
Jackson has difficulty to handle the class field, although it did previously (when it was between phylum and order). Strange....
It works with Jackson ver. 1.x but not with ver. 2.x. It is said that these two versions can coexist, but @JsonProperty does not seem compatible anymore. It is helpful if org.gbif.api.model.checklistbank.NameUsage.java contains both @JsonProperty like
@JsonProperty("class") @com.fasterxml.jackson.annotation.JsonProperty(value="class") private String clazz;
Cheers, James
Hello James, you are right that our API classes are made for Jackson 1.x as it currently stands. We considered to move to jackson 2 before and I have a patch ready, but it has a lot of impact for our code (mostly conflicts in hadoop bundled versions of jackson) so that we are not yet confident to apply the change. If you want to use our API classes please stick with jackson 1.x until we migrate the entire gbif-api library.
best, Markus
On 15 Aug 2014, at 01:05, Nozomi James Ytow nozomi@biol.tsukuba.ac.jp wrote:
Jackson has difficulty to handle the class field, although it did previously (when it was between phylum and order). Strange....
It works with Jackson ver. 1.x but not with ver. 2.x. It is said that these two versions can coexist, but @JsonProperty does not seem compatible anymore. It is helpful if org.gbif.api.model.checklistbank.NameUsage.java contains both @JsonProperty like
@JsonProperty("class") @com.fasterxml.jackson.annotation.JsonProperty(value="class") private String clazz;
Cheers, James _______________________________________________ API-users mailing list API-users@lists.gbif.org http://lists.gbif.org/mailman/listinfo/api-users
participants (2)
-
Markus Döring
-
Nozomi James Ytow