FasterXML / FasterXML/jackson3-dev

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

Abierto
#29 0 comentarios 0 reacciones 0 asignados Ver en GitHub
enhancement
Lenguaje dominante
Sin datos de lenguaje
Estrellas
6
Forks
0
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.