FasterXML / FasterXML/jackson3-dev

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

オープン
#29 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement
主要言語
言語のデータがありません
スター
6
フォーク
0
PR マージ指標
30日以内にマージされた PR はありません

説明

(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).

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。