GPLNature / pubgapi

Java Wrapper for the PUBG API
GNU General Public License v3.0
8 stars 7 forks source link

Add logging if jackson enum deserializer fallback to JsonEnumDefaultValue #18

Open GPLNature opened 3 days ago

GPLNature commented 3 days ago

if PUBG update there api like GameMode variant, This library can't handling new GameMode because there is no enum value for that.

jackson library automatically fallback to default enum value that annotate with JsonEnumDefaultValue for now. ( configure with DeserializationFeature.READ_UNKNOWN_ENUM_VALUES_USING_DEFAULT_VALUE )

but, it cause error specific tasks, like user match data. cannot get exact GameMode enums for newly added by PUBG.

so, i add add log if jackson enum deserializer fallback to JsonEnumDefaultValue enum before another solution for this.

GPLNature commented 3 days ago

depends #14 #17