Validation errors should be able to indicate that a single error should be produced without collecting all of the details ahead of time
メンテナーはふだん 6 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
まず anyOf、oneOf、dependentRequired の検証パスをたどり、次に ValidationError.init がコンテキストをどのように受け取るかを調べます。すべてのサブエラーを収集せずに検証エラーを返せるようになり、その完全な内容は要求されたときにのみ計算されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
In general, validation is lazy -- if only one error is needed (in the sense that it is known that an instance is invalid), only one is produced.
There are however (somewhat unintentional) exceptions.
E.g.:
anyOfandoneOfcalculate the.contextof the first error they yield by calculating all sub-errors that were generated. This is becauseValidationError.contextneeds to be provided on__init__.dependentRequired, on the other hand, yields many errors, one for each missing required property (see also #119)
What's happening in these situations is that the validation function knows an error has occurred -- it wants to yield an error, but in order to do so, it needs to calculate the full details required so that the error is "complete".
We should instead have a way to indicate a validation error has occurred, but delay fully calculating its contents until/unless they are requested.
- 主要言語
- Python
- スター
- 5k
- フォーク
- 741
- 平均マージ
- 4日 17時間
- マージ済み PR(30日)
- 6
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
難易度 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再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープン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 日以内に返信