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

Traits fixtures use a target that is not RFC 9535 (`@.x-oai-traits`)

オープン 初心者向け
#415 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
84/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
javascript, yaml
領域
testing

調査の方向性

tests/v1.0/pass/actions-traits-example.yaml、tests/v1.1/pass/actions-traits-example.yaml、tests/v1.2-dev/pass/actions-traits-example.yamlのtargetエントリを更新し、仕様の修正されたtraitsの例に一致させてください。まず、これらのfixtureとissue内の例を比較し、その後、fixtureに対してスキーマテストスイートを実行してください。3つすべてが修正されたtargetを使用し、期待される操作を選択すれば完了です。

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

説明

The traits fixtures in the schema test suite use a target that is not a valid RFC 9535 query:

  • tests/v1.0/pass/actions-traits-example.yaml
  • tests/v1.1/pass/actions-traits-example.yaml
  • tests/v1.2-dev/pass/actions-traits-example.yaml
- target: $.paths.*.get[[email protected]]

In RFC 9535, a member name in shorthand notation cannot contain - (section 2.5.1.1: name-char = name-first / DIGIT, and name-first excludes -), so @.x-oai-traits is a syntax error; it would have to be @['x-oai-traits']. The fixtures pass because the schema only checks pattern: ^\$ on target. But an implementation that follows the "RFC9535 Compliance" section ("MUST fully implement RFC9535") has to reject these overlays, so the "pass" fixtures cannot be used to test tools.

Even in bracket notation, the target would filter the members of each get operation, not the operations themselves, and paged is an array element, not a member. #229 fixed the same example in the specification text (now in 1.1.0 and 1.2.0) to:

- target: $.paths[?(@.get['x-oai-traits'][?(@ == 'paged')])].get

Suggestion: use that target in the three fixtures, so that they match the specification's traits example.

Found while running the fixtures against an RFC 9535 implementation that passes the JSONPath Compliance Test Suite; the corrected target parses and selects the expected operations on the specification's example description.

主要言語
JavaScript
スター
121
フォーク
38
平均マージ
1日 17時間
マージ済み PR(30日)
9

環境構築

はじめの一歩

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

OAI/Overlay-Specification のほかの issue

OAI/Overlay-Specification の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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