FasterXML / FasterXML/jackson3-dev

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

Aperta
#29 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
enhancement
Lingua principale
Nessun dato sulla lingua
Stelle
6
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.