I mean, we can only keep `statusCode` in this class but the `@JsonCreator` can have both `status` and `statusCode` as its params. Also this class needs to have both `getStatus()` and `getStatusCode()` annotated with `@JsonProperty`. Then, serialization and deserialization would work. In serialization, both `status` and `statusCode` would be in the serialized JSON because we have both both `getStatus()` and `getStatusCode()` methods. In deserialization, this class can read either `status` or `statusCode` (or both) since the constructor accepts both params.
[ Full content available at: https://github.com/apache/incubator-druid/pull/6334 ] This message was relayed via gitbox.apache.org for [email protected]
