Docs example: immutable Registry replacement and lookup recovery

未關閉 適合新手
#434 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
68/100
Issue 類型
文件
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
python
領域
documentation

研究方向

閱讀連結的 adapter、scenarios/referencing 中的三個 trace,以及說明設定與範圍的 adapters/python-libraries/README.md。檢查範例如何展示 Registry 的不可變替換、JSON pointers,以及在遇到未註冊參照後的復原,再與 Registry 文件進行比較。完成條件是:文件包含合適的可執行範例,且不新增上游執行階段相依性。

由索引模型根據 Issue 內容生成。

描述

I prepared an external example that keeps both the current Registry and its previous version. A trace replaces a resource, then looks up the same URI through both registries to show which version each one retains. Two more traces cover JSON pointers and recovery after an unregistered reference.

All resources are explicitly registered in memory; the adapter never retrieves them over the network.

Adapter · three traces · setup and scope · external PR #14.

Python 3.12, referencing 0.37.0; 3 traces / 12 steps. Linux, Windows and macOS CI.

The JSON runner is my external interaction-check project. Upstream would gain no runtime dependency. Would a runnable example of these observations fit the Registry documentation?

主要語言
Python
星號
56
分支
55
平均合併
5 天 22 小時
30 天內合併 PR
4

環境準備

這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

python-jsonschema/referencing 的其他 Issue

查看 python-jsonschema/referencing 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。