How to build AnnotationOverrides from ObjectMapper
还没有人认领这个 Issue。
评估
调研方向
首先阅读 AnnotationOverrides API 和 ClassKey 类型,然后将它们与 ObjectMapper.findMixInClassFor(Class<?>) 进行比较。确定现有 API 是否能够在不重复配置的情况下公开所有已注册的 mix-ins;完成标准应是一个有文档记录且达成共识的实现路径,或一个范围明确的 API 变更。
由索引模型根据 Issue 内容生成。
描述
Hi Tatu,
In the context of my JSON Schema Generator library, I've been asked to support the mix-ins registered on a given Jackson ObjectMapper, when resolving members via classmate.
I saw the usage of the AnnotationOverrides type in classmate expecting this method to be implemented:
List<Class<?>> mixInsFor(ClassKey);
Unfortunately, the ClassKey is a utility type, which doesn't offer a getter for the wrapped Class, which complicates things.
Likewise on the Jackson ObjectMapper, there is no way to retrieve a full set of registered mix-ins as a simple Map. Just this method:
Class<?> findMixInClassFor(Class<?>)
Any suggestions on how to implement the AnnotationOverrides based on a fully configured ObjectMapper without requiring the same mix-ins to be provided all over again?
- 主要语言
- Java
- 星标
- 266
- 派生
- 47
- 平均合并
- 1 小时 42 分钟
- 30 天内合并 PR
- 1
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
FasterXML/java-classmate 的其他 Issue
-
难度 5/5 一周以上 新手友好度 25/100
FasterXML/java-classmate#111 · 10 条评论 ·
-
难度 4/5 3-5 天 新手友好度 35/100
FasterXML/java-classmate#76 · 6 条评论 · 1 个 reaction ·
-
难度 5/5 一周以上 新手友好度 20/100
FasterXML/java-classmate#72 · 3 条评论 ·
-
难度 4/5 3-5 天 新手友好度 35/100
FasterXML/java-classmate#69 · 22 条评论 ·
-
难度 4/5 3-5 天 新手友好度 35/100
FasterXML/java-classmate#57 · 1 条评论 ·
查看 FasterXML/java-classmate 的全部 Issue
相似的 Issue
-
awaiting triage bug Causes friction Hop Gui P1 P2 Transforms
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 75/100
apache/flink-agents#1152 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 70/100
jenkinsci/blueocean-plugin#5417 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
objectionary/eo-graphs#75 ·