OpenAPI format, `required` plus `minimum`/`maximum` fields
還沒有人認領這個 Issue。
評估
研究方向
首先,使用提供的 OpenAPI schema 和 instance,透過 check-jsonschema CLI 重現回報的結果。檢查 CLI 如何探索 schema 以及如何處理 OpenAPI 元件,然後驗證缺少必要屬性以及超出 minimum 或 maximum 的值會被拒絕。
由索引模型根據 Issue 內容生成。
描述
I'm trying to validate a schema generated my OpenAPI and check-jsonschema is not working with it. In particular, I need to check required plus minimum/maximum fields.
This is the schemafile:
{
"components": {
"schemas": {
"my_data": {
"type": "object",
"properties": {
"longitude": {
"type": "number",
"format": "decimal-degrees +/- DDD.D",
"example": -107.6177275,
"description": "the longitude of the observatory/instrument",
"minimum": -180,
"maximum": 180
}
},
"required": ["longitude"]
}
}
}
}
This is the instance an example of instance file: {"latitude":190.0}.
Currently check-jsonschema is returning ok -- validation done
- 主要語言
- Python
- 星號
- 357
- 分支
- 74
- 平均合併
- 8 天 14 小時
- 30 天內合併 PR
- 3
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
python-jsonschema/check-jsonschema 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 77/100
-
難度 2/5 1-3 小時 新手友好度 77/100
python-jsonschema/check-jsonschema#737 · 2 則留言 ·
-
New vendored schemas: Datadog可能已有人在做 @lannuttia 於 120 天前認領。 未關閉
難度 3/5 1-2 天 新手友好度 35/100
-
Feature Request: Support URL rewrite可能重新可做 關聯的 PR 已關閉且未合併。 未關閉
難度 4/5 3-5 天 新手友好度 48/100
-
Support ETag for cache validation when Last-Modified is unavailable可能已有人在做 @sirosen 於 253 天前認領。 未關閉enhancement
python-jsonschema/check-jsonschema#668 · 9 則留言 · 已指派 1 人 ·
查看 python-jsonschema/check-jsonschema 的全部 Issue
相似的 Issue
-
accepted
難度 2/5 1-3 小時 新手友好度 66/100
future-agi/future-agi#5908 ·
維護者通常 1 天內回覆
-
Placeholder export disables HTML image input for picture description可能已有人在做 @cloudiful 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 78/100
docling-project/docling-serve#817 ·
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 92/100
Techiebutler/freeframe#687 ·
維護者通常 1 天內回覆
-
Parse truncated verbose GC logs up to the first XML error可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉bug verbose GC
難度 2/5 1-3 小時 新手友好度 74/100
IBM/javacore-analyser#677 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 79/100
維護者通常 2 天內回覆