microsoftgraph / microsoftgraph/msgraph-sdk-php

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

Aperta Adatta ai principianti
#1,739 6 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

bug: metadata type:bug
Lingua principale
PHP
Stelle
669
Fork
150
Merge medio
15h 21m
PR unite (30g)
3

Descrizione

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"

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia con src/Generated/Models/BookingStaffRole.php, dove è dichiarato l'enum del ruolo Team Member, e confrontalo con il valore dell'API mostrato nell'issue e con la richiesta staff-members. Verifica il valore corretto dell'enum eseguendo i test SDK pertinenti o riproducendo la richiesta booking business staff-members; il lavoro è completato quando la richiesta accetta il ruolo Team Member e restituisce un risultato valido.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
php
Ambito
api
Tipo di issue
Bug
Difficoltà
1/5
Tempo stimato
Meno di un'ora
Stato di attività
Attiva
Chiarezza
Specificata chiaramente
Idoneità per principianti
88/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.