microsoftgraph / microsoftgraph/msgraph-metadata

Missing key UserExtend for Enum AccessPackageRequestType

Open
#661 1 comment 0 reactions 2 assignees View on GitHub

@irvinesunday is already working on this.

Since Aug 12, 2024.

Area: OpenAPI Area: Workload priority:p1
Dominant language
XSLT
Stars
166
Forks
55
Avg merge
16h 12m
Merged PRs (30d)
14

Description

Fixes https://github.com/microsoftgraph/msgraph-sdk-python/issues/838

Raised in python, the missing key UserExtend for Enum AccessPackageRequestType affects all SDKs.

While generation is fine , it maps the enum definition in the OpenAPI file:

microsoft.graph.accessPackageRequestType:
      title: accessPackageRequestType
      enum:
        - notSpecified
        - userAdd
        - userUpdate
        - userRemove
        - adminAdd
        - adminUpdate
        - adminRemove
        - systemAdd
        - systemUpdate
        - systemRemove
        - onBehalfAdd
        - unknownFutureValue
      type: string

To the generated Python Enum Model as:

from enum import Enum

class AccessPackageRequestType(str, Enum):
    NotSpecified = "notSpecified",
    UserAdd = "userAdd",
    UserUpdate = "userUpdate",
    UserRemove = "userRemove",
    AdminAdd = "adminAdd",
    AdminUpdate = "adminUpdate",
    AdminRemove = "adminRemove",
    SystemAdd = "systemAdd",
    SystemUpdate = "systemUpdate",
    SystemRemove = "systemRemove",
    OnBehalfAdd = "onBehalfAdd",
    UnknownFutureValue = "unknownFutureValue",

More Details
The openapi.yaml shows that UserExtend exists in the description, but it does not exist in the definition as shown above.
image

Workload owner or metadata update required
Checking the description, seems the key has not been added by the workload owner as well:
image (1)

Solution
Adding this will automatically solve this for all SDKs.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.