Add some way of resolving out-of-schema references

オープン
#74 コメント 4 件 リアクション 2 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python
領域
backend

調査の方向性

The issue proposes a function that fetches external schemas, adds them to a definitions section, and rewrites $ref keys; it does not name files, tests, or entry points. Start by reading the from_schema() implementation and existing schema reference handling, then identify how definitions and external references are represented. Done means external schemas are resolved into in-schema definitions while from_schema() remains free of IO.

索引モデルが issue の本文から書いたものです。

説明

I really don't like references to other schemas, because they make the meaning temporally variable and unreliable - the referenced schema can change or become inaccessible. Dealing with them also adds IO, which makes everything harder.

Nonetheless, they are useful and in practice widely used, so we can't ignore them forever. I would therefore like to add a function which fetches external schemas, adds them to a definitions section, and rewrites the $ref keys to point to the new in-schema copies.

The actual from_schema() implementation can then continue to ignore IO, and any problems will at least be isolated in their own function!

主要言語
Python
スター
281
フォーク
35
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

python-jsonschema/hypothesis-jsonschema のほかの issue

python-jsonschema/hypothesis-jsonschema の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。