Getting $ref history
维护者通常 6 天内回复
还没有人认领这个 Issue。
评估
调研方向
从 issue 中的 validator.iter_errors 示例开始,并查看参考 #1144,然后追踪已弃用的 validator.resolver 如何公开 $ref 的 scope 历史。完成的标准是,项目提供一种受支持的方式来获取这些调试信息,而不依赖已弃用的 resolver,并且预期行为已记录在文档中或由测试覆盖。
由索引模型根据 Issue 内容生成。
描述
In large schemas, understanding which $ref is being referenced when an error occurs can be helpful in debugging. We used to refer to the history of $ref with (ill-mannered) code like this:
for error in validator.iter_errors(instance):
print(validator.resolver._scopes_stack)
print(error)
However, with the current version of jsonschema, validator.resolver is deprecated, and it will be not possible to refer to it.
Is there a legitimate way to retrieve this information in jsonschema?
Reference: #1144
- 主要语言
- Python
- 星标
- 5k
- 派生
- 741
- 平均合并
- 4 天 17 小时
- 30 天内合并 PR
- 6
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
python-jsonschema/jsonschema 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
python-jsonschema/jsonschema#1610 · 1 条评论 ·
维护者通常 6 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
python-jsonschema/jsonschema#1588 · 2 条评论 ·
维护者通常 6 天内回复
-
Iterator error contexts lose parent links and absolute paths可能重新可做 @DawnofGenX 于 59 天前认领,目前没有进行中的 PR。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
python-jsonschema/jsonschema#1584 · 3 条评论 ·
维护者通常 6 天内回复
-
regex format checker crashes with RecursionError on deeply nested patterns可能已有人在做 @DawnofGenX 于 59 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
python-jsonschema/jsonschema#1538 · 1 条评论 ·
维护者通常 6 天内回复
-
is_duration raises an uncaught decimal.Overflow on a duration with a large exponent可能重新可做 关联的 PR 已关闭且未合并。 未关闭Needs Test Upstream
难度 2/5 1-3 小时 新手友好度 78/100
python-jsonschema/jsonschema#1511 · 1 条评论 ·
维护者通常 6 天内回复
查看 python-jsonschema/jsonschema 的全部 Issue
相似的 Issue
-
难度 1/5 1-3 小时 新手友好度 78/100
web-push-libs/pywebpush#216 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 72/100
AgriciDaniel/claude-seo#572 ·
维护者通常 5 天内回复
-
area:print-dispatch
难度 2/5 1-3 小时 新手友好度 92/100
维护者通常 1 天内回复
-
area: docs domain: technical-writing good first issue type: documentation
难度 2/5 1-3 小时 新手友好度 80/100
Deepak3699/Ai_Mentor#919 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复