Skip to content

Beta generation blocked by generation based duplicate enum value #167

@MIchaelMainer

Description

@MIchaelMainer

There are duplicate enum values for WindowsMalwareCategory:
remote_Control_Software
remoteControlSoftware

The PHP Enum template changes both values to:
REMOTE_CONTROL_SOFTWARE

It is also removing the underscore from the member name so it won't be serialized correctly for the second case.

Need a fix to https://github.com/microsoftgraph/MSGraph-SDK-Code-Generator/blob/dev/Templates/PHP/Model/EnumType.php.tt#L36

  • Differentiate generation for the two names.
  • Maintain the underscore member name.

https://raw.githubusercontent.com/microsoftgraph/msgraph-metadata/master/beta_metadata.xml

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions