Adding alias to work with 'contenttype' and 'contentType' on deserialization

Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
Fabio José 2019-08-13 17:52:06 -03:00
parent 0b2585048c
commit 6b32537972
1 changed files with 1 additions and 0 deletions

View File

@ -140,6 +140,7 @@ public class DefaultCloudEventImpl<T> implements CloudEvent<T>, Serializable {
this.schemaURL = schemaURL;
}
@JsonAlias("contenttype")
void setContentType(String contentType) {
this.contentType = contentType;
}