Unescaped DELETE control character U+007F fails with "unacceptable character"
まだ誰も着手していません。
評価
調査の方向性
Start by reproducing the reported command, python -m openapi_spec_validator --schema 2.0 openapi-spec.json, with both the literal U+007F and its \u007f form. The payload names no source file or test, so trace where parsing rejects the character and whether the dependency is responsible. Done means the expected behavior is implemented and covered for both inputs, or the dependency limitation is clearly documented.
索引モデルが issue の本文から書いたものです。
説明
Note: I am not entirely sure if the source of this issue lies within the scope of this library of any of its dependencies.
Situation
My (openAPI specification) JSON file contains a string with an unescaped DELETE control character, U+007F.
"examples" : {
"image/png" : "" # should be U+007F (Github seems to redact this character)
},
Output of python -m openapi_spec_validator --schema 2.0 openapi-spec.json is:
unacceptable character #x007f: special characters are not allowed
in "<urllib response>", position 1082
If we replace the character by its encoded equivalent, like this:
"examples" : {
"image/png" : "\u007f"
},
the result is: OK
Expected
In my understanding, RFC 7159 (obsolete) RFC 8259 allows this specific control character to appear escaped and unescaped inside JSON strings: https://tools.ietf.org/html/rfc8259#section-7.
Therefore, I expect OK for both Inputs mentioned above.
- 主要言語
- Python
- スター
- 409
- フォーク
- 73
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
python-openapi/openapi-spec-validator のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 30/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
python-openapi/openapi-spec-validator#400 · コメント 1 件 ·
-
kind/bug/confirmed
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
python-openapi/openapi-spec-validator#373 · コメント 1 件 ·
python-openapi/openapi-spec-validator の issue をすべて見る
似ている issue
-
sponsored
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
Diaoul/subliminal#1382 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
-
triage/confirmed
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
agentscope-ai/agentscope#2775 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100