Ensure extended validators can create keywords which override exception messages
メンテナーはふだん 6 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Issue にはファイルやテストのエントリーポイントが記載されていません。まず validator と拡張 validator のドキュメントを読み、次に例外メッセージがどのように生成されるかを特定してください。拡張 validator で、それらのメッセージを上書きする schema キーワードを定義でき、例の動作をカバーするテストがある状態が完了です。
索引モデルが issue の本文から書いたものです。
説明
Hi, first of all, thanks for all your work with this package.
All in all i think it works great and really does what it should and is supposed to do.
I think that if i should mention anything that i think could be better it would probably be better error messages, now i do understand that it is really hard to generate good error messages for all use cases but something that could be very useful is the option to add custom error messages.
Here is an example.
{
"type": "object",
"properties": {
"templates": {
"type": "object",
"properties": {
"path": {"type": "string", "minLength": 1, "pattern": "^(/[^/]+)+$", "message": {"pattern": "You must use a valid full path with no trailing slashes"}}},
"required": ["path"],
},
},
"required": ["templates"],
}
I've read the documentation and haven't been able to find a way to define custom messages in the schema, but maybe i have missed something?
- 主要言語
- 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 日以内に返信