microsoftgraph / microsoftgraph/msgraph-sdk-java

The "creationOptions" field is missing in the Group class

未关闭
#1,778 1 条评论 3 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

dependency:metadata status:waiting-for-dependency type:question
主要语言
Java
星标
444
派生
154
平均合并
18 小时 28 分钟
30 天内合并 PR
4

描述

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.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从 com.microsoft.graph.models.Group 类开始,将其可用属性与 issue 中描述的 transitiveMemberOf 组响应进行比较。添加缺失的 creationOptions 属性,类型为 List;完成的标准是 Java 调用方可以访问它,并且 SDK 模型能够表示返回的值。

由索引模型根据 Issue 内容生成。

评估

技术栈
java
领域
api
Issue 类型
缺陷
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。