microsoftgraph / msgraph-sdk-java

Microsoft Graph SDK for Java
https://docs.microsoft.com/en-us/graph/sdks/sdks-overview
MIT License
374 stars 126 forks source link

The "creationOptions" field is missing in the Group class #1778

Open gary-zhang-everlaw opened 8 months ago

gary-zhang-everlaw commented 8 months ago

Issue

I noticed that the com.microsoft.graph.models.Group class doesn't have the creationOptions field. However, this field is available in the HTTP response if I make a HTTP request to the v1.0 endpoint instead of using the Graph Sdk. The endpoint I am using is /transitiveMemberOf An example response from HTTP request:

{
     "id": "",
     "deletedDateTime": null,
     "classification": null,
     "createdDateTime": "",
     "creationOptions": [
         "ProvisionGroupHomepage"
     ],
    ... (other properties)
}

Expected behavior

The com.microsoft.graph.models.Group class should have a creationOptions field with type List<String>.

Actual behavior

The creationOptions field is not available in the com.microsoft.graph.models.Group class.

Steps to reproduce the behavior

Sdk version: latest sdk

Java code:

Group group = client.me().transitiveMemberOfAsGroup();
List<String> creationOptions = group.creationOptions; // will throw an compile error! The "creationOptions" field does not exist in class Group.

HTTP request: GET https://graph.microsoft.com/v1.0/me/transitiveMemberOf/microsoft.graph.group The creationOptions property is available in the HTTP response.

baywet commented 7 months ago

Note: still missing from the new major version https://github.com/microsoftgraph/msgraph-metadata/issues/204