[FEATURE] Improve JsonSchema
- Dominant language
- Java
- Stars
- 4.4k
- Forks
- 613
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 6
Description
### 请描述您的需求或者改进建议
@wenshao 您好, 我对[增加JSONDiff](https://github.com/alibaba/fastjson2/issues/869)功能感兴趣, 并在该issue下留了言.
于是对```kafka-schema-registry```进行调研,发现其实现为先序列化两个```json```串为```jsonSchema```, 然后再对两个模式串进行验证之后, 进行比对. 在验证阶段, 需要保证JsonSchema的完备性, 才能保证在遍历比对的时候不抛出异常. 这一方面, ```kafka-schema-registry```所依赖的[org.everit.json.schema](https://github.com/everit-org/json-schema)几近成为事实标准.
思路: 为了保证比对阶段的正常工作,我们应该完善现有的jsonSchema来达到这一目的
### 请描述你建议的实现方案
对齐```everit-org/json-schema```, 并为此添加单元测试
### 描述您考虑过的替代方案
*对您考虑过的任何替代解决方案或功能的描述。*
#### 附加信息
*如果你还有其他需要提供的信息,可以在这里填写(可以提供截图、视频等)。*
Contributor guide
Research direction
Start by reviewing the existing JsonSchema implementation and its unit tests, then compare their behavior with org.everit.json.schema. The proposed work is complete when the current JsonSchema implementation is aligned with that library and the differences are covered by unit tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100