Closed ucarion closed 4 years ago
This PR includes two fixes to make Java codegen work more out of the box:
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "version") @JsonSubTypes({ @JsonSubTypes.Type(V1.class), @JsonSubTypes.Type(V2.class), })
To this:
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "version") @JsonSubTypes({ @JsonSubTypes.Type(name = "v1", value = V1.class), @JsonSubTypes.Type(name = "v2", value = V2.class), })
This PR includes two fixes to make Java codegen work more out of the box:
To this: