Adding alias to work with 'contenttype' and 'contentType' on deserialization
Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
parent
0b2585048c
commit
6b32537972
|
|
@ -140,6 +140,7 @@ public class DefaultCloudEventImpl<T> implements CloudEvent<T>, Serializable {
|
|||
this.schemaURL = schemaURL;
|
||||
}
|
||||
|
||||
@JsonAlias("contenttype")
|
||||
void setContentType(String contentType) {
|
||||
this.contentType = contentType;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue