We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
{ "$defs": { "person": { "type": "object", "properties": { "name": { "type": "string" }, "children": { "$ref": "#/$defs/personList" } } }, "personList": { "type": "array", "items": { "$ref": "#/$defs/person" } } }, "type": "object", "properties": { "family": { "$ref": "#/$defs/person" } } }
当前使用版本2.0.39 解析后的schema对如下json进行校验报错
{"family":{"name":"1","children":[{"name":"2"}]}}
报错信息
com.alibaba.fastjson2.JSONSchemaValidException: property family invalid; property children invalid; not fail
查看解析后的schema发现如下内容,循环引用的部分被解析成为了not any
The text was updated successfully, but these errors were encountered:
add testcase for issue #1766
e215260
支持的啊,你遇到什么问题了
Sorry, something went wrong.
问题信息已经补充
https://github.com/alibaba/fastjson2/releases/tag/2.0.41 问题已修复,请用新版本
No branches or pull requests
支持如下格式的jsonschema解析
当前使用版本2.0.39
解析后的schema对如下json进行校验报错
报错信息
查看解析后的schema发现如下内容,循环引用的部分被解析成为了not any
The text was updated successfully, but these errors were encountered: