Azure / azure-functions-java-library

Contains annotations for writing Azure Functions in Java
MIT License
42 stars 42 forks source link

Deserialization ignore Gson annotations for a HttpTrigger function #127

Closed agilisticdev closed 3 years ago

agilisticdev commented 3 years ago

I am developing a new Http trigger function in Kotlin. The function is a POST on a certain resource. On of my requirement is to use snake case instead of camel case. Here is the problem I am facing: the deserialization from json -> object completely ignores the @SerializedName annotation (from Gson). It works if my json element names are exactly identical to the class member but does not work - creates an empty object - when I post a json that uses snake case!

Why the Gson annotations are ignored? I tried Jackson annotation @JsonProperty and it ignores them too!

It used to work less than a month ago!!!

agilisticdev commented 3 years ago

azure-functions-java-library version 1.3.1

agilisticdev commented 3 years ago

It

amamounelsayed commented 3 years ago

Hey @agilisticdev, can you please try it with the latest version, we are updating the latest release notes in this issue https://github.com/Azure/azure-functions-java-worker/issues/400