Skip to content

Commit

Permalink
Fix deserialization of TimeRange objects
Browse files Browse the repository at this point in the history
  • Loading branch information
bernd committed Feb 23, 2016
1 parent ab354ac commit 0b5bb4b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

import java.util.Map;

@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type")
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", visible = true)
@JsonSubTypes({
@JsonSubTypes.Type(name = AbsoluteRange.ABSOLUTE, value = AbsoluteRange.class),
@JsonSubTypes.Type(name = RelativeRange.RELATIVE, value = RelativeRange.class),
Expand Down

0 comments on commit 0b5bb4b

Please sign in to comment.