Validation error with nested oneOf
まだ誰も着手していません。
評価
調査の方向性
Start by reproducing the validation failure with the schema and document in the issue, then trace the nested oneOf and additionalProperties handling in the validator. Done means the supplied nested array is evaluated according to the matching oneOf branch and the validator no longer reports that the value matches none.
索引モデルが issue の本文から書いたものです。
説明
We are developing a tool to apply differential test on json-schema libraries.
We found a subtle error happening only with the LUA's jsonschema library.
We used the following schema:
{
"type": "object",
"properties": {
"resources": {
"type": "object",
"additionalProperties": {
"type": "object",
"oneOf": [
{
"type": "object",
"properties": {
"params": {
"type": "object",
"additionalProperties": {
"oneOf": [
{ "type": "array" },
{ "type": "object" },
{ "type": "string" }
]
}
}
}
}
]
}
}
}
}
And the following document:
{
"resources": {
"myBicepWithInvalidParams": {
"params": {
"param1": []
}
}
}
}
With these, it was generated the following error message:
Invalid doc for schema aspire property "resources"
validation failed: failed to validate additional
property myBicepWithInvalidParams: value should match
only one schema, but matches none
- 主要言語
- Lua
- スター
- 136
- フォーク
- 29
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
api7/jsonschema のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
api7/jsonschema#95 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 20/100
api7/jsonschema#93 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
api7/jsonschema#92 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 42/100
api7/jsonschema#91 ·
-
Support pcre2オープン
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
api7/jsonschema#89 ·
api7/jsonschema の issue をすべて見る
似ている issue
-
examples/dnsdoctor: cleanup.sh stops at the first missing piece of a setup.sh that did not finishオープンseverity: low
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
luainkernel/lunatik#2263 ·
メンテナーはふだん 1 日以内に返信
-
Nmap
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
good first issue
難易度 2/5 半日 初心者へのやさしさ 74/100
whoismjanyway/sereno#14 ·