Wrong enum value for the team member role in booking businesses - Request fails
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 88/100
Research direction
Start with src/Generated/Models/BookingStaffRole.php, where the Team Member role enum is declared, and compare it with the API value shown in the issue and the staff-members request. Verify the corrected enum value by running the relevant SDK tests or reproducing the booking business staff-members request; done means the request accepts the Team Member role and returns a valid result.
Written by the indexing model from the issue text.
Description
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"
- Dominant language
- PHP
- Stars
- 669
- Forks
- 150
- Avg merge
- 15h 21m
- Merged PRs (30d)
- 3
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoftgraph/msgraph-sdk-php
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
microsoftgraph/msgraph-sdk-php#1794 · 2 comments ·
-
status:waiting-for-triage type:bug
Difficulty 1/5 Under an hour Newbie friendliness 68/100
microsoftgraph/msgraph-sdk-php#1643 · 8 comments · 4 reactions ·
-
status:waiting-for-triage
Difficulty 5/5 Over a week Newbie friendliness 35/100
microsoftgraph/msgraph-sdk-php#1800 · 1 reaction ·
-
Now Open
Difficulty 5/5 Over a week Newbie friendliness 1/100
microsoftgraph/msgraph-sdk-php#1799 ·
-
status:waiting-for-triage
Difficulty 4/5 3-5 days Newbie friendliness 45/100
microsoftgraph/msgraph-sdk-php#1792 ·
All issues in microsoftgraph/msgraph-sdk-php
Similar issues
-
priority: p3
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
googleapis/librarian#7636 ·
-
0. Needs triage bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
nextcloud/fulltextsearch#1011 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
phpstan/phpstan-doctrine#794 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Automattic/static-site-importer#1767 ·