-
Notifications
You must be signed in to change notification settings - Fork 65
Closed
Labels
status:waiting-for-author-feedbackIssue that we've responded but needs author feedback to closeIssue that we've responded but needs author feedback to close
Milestone
Description
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: stringThis poses a challenge to Kiota at the moment as there is no signal for the generator to generate an appropriate Flag property.
Notes
- According to Separate annotation per enum value OAI/OpenAPI-Specification#348 (comment) enums could be better described to cater for values by conforming to the json schema
- Some extensions like
x-enumFlagsto denote flagged enums - AutoRest uses
[x-ms-enum](https://github.com/Azure/autorest/tree/main/docs/extensions#x-ms-enum)to denote values and fields.
Related to microsoftgraph/msgraph-beta-sdk-dotnet#496
Metadata
Metadata
Assignees
Labels
status:waiting-for-author-feedbackIssue that we've responded but needs author feedback to closeIssue that we've responded but needs author feedback to close