msgraph-sdk-php icon indicating copy to clipboard operation
msgraph-sdk-php copied to clipboard

PHP enum generation issues

Open MIchaelMainer opened this issue 5 years ago • 0 comments

We've noticed some issues with the code generation for PHP and how it handles enums.

  • [ ] For example, VoiceGender. The member names are uppercase but are generated as lower case.

    <EnumType Name="VoiceGender">
      <Member Name="Female" Value="0" />
      <Member Name="Male" Value="1" />
    </EnumType>
    
  • [ ] Enum members with underscores in the name have the underscore removed. For example, in DeviceManagementSubscriptions, Member Name="intune_EDU" becomes

    const INTUNE_EDU = "intuneEDU"; AB#7580

MIchaelMainer avatar Apr 19 '19 20:04 MIchaelMainer