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

OpenAPI docs: identityname should be identity.name, and token scope admin should be global

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

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

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
78/100
issue の種類
ドキュメント
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
csharp, openapi
領域
api, documentation

調査の方向性

src/Exceptionless.Web/Api/Endpoints/EventEndpoints.cs のパラメーターの説明と TokenEndpoints.cs のトークンスコープの説明を読み、EventHandler.cs および AuthorizationRoles.cs と比較してください。OpenAPI の説明を更新して identity.name を使い、client、user、global、source-maps:write を列挙し、tests/Exceptionless.Tests/Api/Data/openapi.json のスナップショットを再生成してください。説明とチェックイン済みのスナップショットがサーバーの動作と一致すれば完了です。

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

説明

bug documentation

The generated OpenAPI document has two errors that make API calls fail or behave unexpectedly:

  1. The event submit GET endpoints document an identityname query parameter. The server reads identity.name.
  2. The token create endpoints say valid scopes are client, user, admin. The scope is actually named global, and admin is rejected.

Where

What happens

  • GET /api/v2/events/submit?...&[email protected]&identityname=Jane stores identityname as a custom data property, and the user's name isn't set.
  • Creating a token with "scopes": ["admin"] returns a validation error, "Invalid token scope requested."

Expected

The parameter is documented as identity.name, and the scope descriptions list client, user, global (global admins only), and source-maps:write.

Suggested fix

Rename the parameter key and description in EventEndpoints.cs, fix the three token descriptions, and regenerate openapi.json. Optionally accept identityname as an alias in EventHandler for clients that followed the docs.

主要言語
C#
スター
2.5k
フォーク
508
平均マージ
2日 17時間
マージ済み PR(30日)
40

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

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

exceptionless/Exceptionless のほかの issue

exceptionless/Exceptionless の issue をすべて見る

似ている issue

C# の issue をもっと見る

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

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