FasterXML / FasterXML/jackson3-dev

Allow combination of `@JsonValue`, `@JsonRawValue` somehow

Đang mở
#29 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
6
Fork
0
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

(for background see https://github.com/FasterXML/jackson-databind/issues/1938)

Although naming of `@JsonRawValue` might indicate combination of `@JsonValue` and "do not encode", it actually works as refinement for regular properties, that is, combination of `@JsonProperty` and "do not encode".

But in some cases it would be beneficial to allow former interpretation.

One possibility would be to add a new property in `@JsonValue` -- this seem more natural than doing the reverse (adding something in `@JsonRawValue` to indicate "this is the sole output like `@JsonValue`, not property).

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.