jsonschema.generate_validator is not able to resolve the internal schema reference pointing within the same document.
还没有人认领这个 Issue。
评估
调研方向
Start at jsonschema.generate_validator and reproduce the failure with an OpenAPI document containing an internal $ref such as #/components/schemas/decimal; compare this with the external_resolver behavior mentioned in the report. Done means internal references within the same document resolve successfully and validator generation no longer reports the missing reference.
由索引模型根据 Issue 内容生成。
描述
I am reading a schema from open api specification file which contains internal schema references like "$ref": "#/components/schemas/decimal" but when I try to generate validator with jsonschema.generate_validator, it gives me this error "reference not found: root:#/components/schemas/AddFundsTransferRq (at "components"). I also tried using external_resolver but it didn't work.
- 主要语言
- Lua
- 星标
- 136
- 派生
- 29
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
api7/jsonschema 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
api7/jsonschema#95 ·
-
难度 3/5 1-2 天 新手友好度 52/100
api7/jsonschema#105 ·
-
难度 4/5 3-5 天 新手友好度 20/100
api7/jsonschema#93 ·
-
难度 3/5 1-2 天 新手友好度 35/100
api7/jsonschema#92 ·
-
难度 2/5 1-3 小时 新手友好度 42/100
api7/jsonschema#91 ·
相似的 Issue
-
documentation severity: low
难度 1/5 1 小时以内 新手友好度 88/100
luainkernel/lunatik#2231 ·
维护者通常 1 天内回复
-
v3: Lua m.setvar() returns -1 on errors, so the script gets stack garbage可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭3.x bug
难度 2/5 1-3 小时 新手友好度 72/100
owasp-modsecurity/ModSecurity#3731 ·
维护者通常 1 天内回复
-
good first issue redis-compat
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
LSP: Invalid buffer id in previous_result_ids during workspace/diagnostic/refresh可能已有人在做 @sharky720 于 1 天前认领。 未关闭diagnostic lsp
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
easy first-contributor first-contributors good first issue help wanted lua up-for-grabs
难度 2/5 1-3 小时 新手友好度 88/100
fork-commit-merge/fork-commit-merge#8458 ·
维护者通常 1 天内回复