FasterXML / FasterXML/jackson3-dev

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

未關閉
#10 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
enhancement
主要語言
沒有語言資料
星號
6
分支
0
PR 合併指標
30 天內沒有已合併 PR

描述

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.

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。