Skip to content

Support for enum flags #258

Closed
Closed
@andrueastman

Description

@andrueastman

Taking a look at the metadata for the SourceType enum in the graph metadata, there exists the IsFlags property which is set to true.

      <EnumType Name="sourceType" IsFlags="true">
        <Member Name="mailbox" Value="1" />
        <Member Name="site" Value="2" />
      </EnumType>

The flags attribute is not propagated to the converted openApi description in any way at the moment and also information on the values is also lost in the conversion process.

    microsoft.graph.security.sourceType:
      title: sourceType
      enum:
        - mailbox
        - site
        - unknownFutureValue
      type: string

This poses a challenge to Kiota at the moment as there is no signal for the generator to generate an appropriate Flag property.

Notes

Related to microsoftgraph/msgraph-beta-sdk-dotnet#496

cc @baywet @darrelmiller

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions