Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Message context not populated when validating response headers

オープン
#25 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

@Stachu270 がすでに取り組んでいます。

2026年6月28日 から。

  • #27 @Stachu270 による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
java, openapi
領域
api, testing-qa

調査の方向性

まず、response-header の検証と request-header の検証を比較し、検証メッセージがパラメーターコンテキストとスキーマキーをどのように受け取るかを追跡します。X-Env の無効な enum ケースを再現し、response-header 検証のエントリーポイントを調査します。失敗したヘッダー名とパラメーターコンテキストが一貫して公開されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

As title says, there is no way to extract any information about header which failed validation while validating response.

For instance, let's say your openapi spec says response header should look like this

responses:
  '200':
    description: blah blah
    headers:
      X-Env:
       description: Environment enum header
       schema:
         type: string
         enum: [dev, test, prod]

when response has header X-Env: 'wrong' validator produces this king of message does not have a value in the enumeration ["dev", "test", "prod"].
Context DOES NOT HAVE parameter value, it DOES NOT HAVE pointers.instance value. There is no way to which header this message is related to.

Generally it would be nice to have headers validation similar to request headers.
I don't understand why validating request headers produces messages with keys validation.request.parameter.schema.(...) and validating response headers produces messages with keys validation.response.header.schema.(...)
It should both be ...parameter.schema and parameter information in context should be populated with proper parameter names

主要言語
Java
スター
17
フォーク
6
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

atlassian/openapi-request-validator のほかの issue

atlassian/openapi-request-validator の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。