FasterXML / FasterXML/jackson3-dev

Add a "class category" level between global and per-type config overrides

Offen
#10 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
enhancement
Vorherrschende Sprache
Keine Sprachdaten
Sterne
6
Forks
0
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Currently granularity of config overrides is coarse: there is the global default for everything, and then overrides for exact (base) type. But there are many cases where one would want to apply settings to category of types, such as:

* All `enum`s
* `Collection`s
* Anything serialized as JSON Array (Collections, arrays)
* Anything structured (serialized as JSON Arrays, Objects)
* Scalars
* Reference types (Optional, AtomicReference)

If so, we would get 3 levels:

1. Global defaults
2. Type categories (possibly limited hierarchy, 2-3 levels at most)
3. Types

It should be possible to just create an enumeration, with tree structure linking levels, to automatically handle level (2). A little bit goes a long way here, as well, no need for dozens of categories or attempts at overlapping (not neatly contained) categories.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.