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

Reject invalid directives on scalars in 15.0.0

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

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

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

評価

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

調査の方向性

SchemaParser#createScalarから始めて、無効なスカラー ディレクティブが現在どのようにログに記録され、省略されるかを確認してください。DirectiveTest.should warn about undeclared directives on scalars and build them without the schema's directivesを更新してSchemaErrorを検証し、その後、この変更を15.0.0のリリースノートに追加してください。スカラー エラーのテストとリリースノートに新しい動作が反映されたら完了です。

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

説明

Since #864, scalars get the directives from the schema. When one of them is undeclared or has an argument its definition doesn't have, tools logs Scalar 'Date' is built without its directives from the schema: … and builds the scalar without them, because those scalars always built before. Every other type throws a SchemaError for the same mistake.

What to change
  • throw the SchemaError in SchemaParser#createScalar instead of logging it
  • turn DirectiveTest.should warn about undeclared directives on scalars and build them without the schema's directives into a test for the error
  • mention it in the 15.0.0 release notes
主要言語
Kotlin
スター
824
フォーク
175
平均マージ
2日 5時間
マージ済み PR(30日)
52

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

graphql-java-kickstart/graphql-java-tools のほかの issue

graphql-java-kickstart/graphql-java-tools の issue をすべて見る

似ている issue

Kotlin の issue をもっと見る

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

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