Wrong enum value for the team member role in booking businesses - Request fails

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

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

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
88/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
php
領域
api

調査の方向性

Team Member ロールの enum が宣言されている src/Generated/Models/BookingStaffRole.php から始め、issue に示されている API の値および staff-members リクエストと比較してください。関連する SDK テストを実行するか、booking business staff-members リクエストを再現して、修正後の enum 値を検証してください。リクエストが Team Member ロールを受け付け、有効な結果を返せば完了です。

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

説明

bug: metadata type:bug
Describe the bug

When you try to fetch staff members of a booking business where one staff member has the Team Member role, the request fails with the error message Invalid enum value member.

Expected behavior

I expect to receive a valid result.

How to reproduce

Request the staff members of a booking business that contains a user with role Team Member
$app_client->solutions()->bookingBusinesses()->byBookingBusinessId( 'business-with-a-staff-member' )->staffMembers()->get()->wait();

SDK Version

2.49.0

Latest version known to work for scenario above?

No response

Known Workarounds

No response

Debug output

invalid enum value member

Configuration

This issue is unrelated to my configuration.

Other information

The team member role name is declared wrong in https://github.com/microsoftgraph/msgraph-sdk-php/blob/acceb46d913bbfeb955c7f82057fb13ac6470117/src/Generated/Models/BookingStaffRole.php#L14

It must be member. This is also the role identifier when requesting the staff members directly via Postman:
"role": "member"

主要言語
PHP
スター
669
フォーク
150
平均マージ
15時間 21分
マージ済み PR(30日)
3

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

microsoftgraph/msgraph-sdk-php のほかの issue

microsoftgraph/msgraph-sdk-php の issue をすべて見る

似ている issue

PHP の issue をもっと見る

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

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