Idea: detailed version-specific type annotations for `Schema`
还没有人认领这个 Issue。
评估
调研方向
Start by reading the linked Python typing discussion and the related jsonschema issues #766 and #778 to understand the proposed TypedDict approach and version-specific schema differences. The issue gives exclusiveMaximum as an example; a working implementation would provide static schema types that vary by draft version and could be considered for upstreaming.
由索引模型根据 Issue 内容生成。
描述
I recently saw https://github.com/python/typing/issues/182#issuecomment-899624078 proposing a nice trick for type-checking JSON data, and it occured to me that this could be extended to define version-specific Schema types using TypedDict. See also https://github.com/Julian/jsonschema/issues/766 and https://github.com/Julian/jsonschema/issues/778 - if we get a working implementation, this would probably be suitable for upstreaming.
For example, this would allow for static detection of exclusiveMaximum as either bool or int | float depending on the schema draft version.
- 主要语言
- Python
- 星标
- 281
- 派生
- 35
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
python-jsonschema/hypothesis-jsonschema 的其他 Issue
-
Missing test files in Pypi release可能已有人在做 @blouirts123 于 49 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 35/100
-
Shouldn't PKG-INFO Homepage point to https://github.com/python-jsonschema/hypothesis-jsonschema ?未关闭
难度 1/5 1 小时以内 新手友好度 58/100
python-jsonschema/hypothesis-jsonschema#114 · 1 条评论 ·
-
难度 1/5 1 小时以内 新手友好度 55/100
python-jsonschema/hypothesis-jsonschema#113 · 1 个 reaction ·
-
难度 5/5 一周以上 新手友好度 30/100
-
难度 5/5 一周以上 新手友好度 15/100
python-jsonschema/hypothesis-jsonschema#104 · 3 个 reaction ·
查看 python-jsonschema/hypothesis-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 天内回复