Error message for "additionalProperties" not easily reproducible with data available in the ValidationError
還沒有人認領這個 Issue。
評估
研究方向
閱讀 #971 中的討論,並檢查 jsonschema/_validators.py,尤其是私有函式 find_additional_properties,同時查看 ValidationError 文件。確定目前如何推導出違規屬性,並定義一種方法,使可用的 ValidationError 資料能夠在不進行該預處理的情況下重現 additionalProperties 訊息;使用相關的驗證測試驗證行為。
由索引模型根據 Issue 內容生成。
描述
This is a follow-up to the discussion in #971 (sorry for the delay).
To reproduce the error message of "additionalProperties", some preprocessing needs to be done based on the data readily available in the ValidationError.
Especially, the offending properties are computed with private function find_additional_properties.
- 主要語言
- Python
- 星號
- 5k
- 分支
- 671
- 平均合併
- 5 小時 43 分鐘
- 30 天內合併 PR
- 6
環境準備
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
python-jsonschema/jsonschema 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 78/100
python-jsonschema/jsonschema#1538 ·
-
Needs Test Upstream
難度 2/5 1-3 小時 新手友好度 78/100
python-jsonschema/jsonschema#1511 · 1 則留言 ·
-
難度 3/5 1-2 天 新手友好度 68/100
python-jsonschema/jsonschema#1558 · 2 則留言 ·
-
難度 4/5 3-5 天 新手友好度 45/100
python-jsonschema/jsonschema#1547 ·
-
難度 4/5 3-5 天 新手友好度 45/100
python-jsonschema/jsonschema#1536 · 1 則留言 ·
查看 python-jsonschema/jsonschema 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 86/100
維護者通常 1 天內回覆
-
難度 2/5 1-2 天 新手友好度 70/100
-
難度 2/5 1-3 小時 新手友好度 88/100
維護者通常 7 天內回覆
-
難度 2/5 1-3 小時 新手友好度 70/100
lmstudio-ai/mlx-engine#376 ·
-
難度 2/5 1-3 小時 新手友好度 72/100
pyiron/bagofholding#166 ·