microsoftgraph / microsoftgraph/msgraph-sdk-java

The "creationOptions" field is missing in the Group class

Đang mở
#1,778 1 bình luận 3 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

dependency:metadata status:waiting-for-dependency type:question
Ngôn ngữ chính
Java
Star
444
Fork
154
Merge trung bình
18 giờ 28 phút
Pull request đã merge (30 ngày)
4

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Bắt đầu với lớp com.microsoft.graph.models.Group và so sánh các thuộc tính có sẵn của lớp này với phản hồi của nhóm transitiveMemberOf được mô tả trong issue. Thêm thuộc tính creationOptions còn thiếu với kiểu List; hoàn thành nghĩa là các trình gọi Java có thể truy cập thuộc tính này và mô hình SDK biểu diễn giá trị được trả về.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
java
Lĩnh vực
api
Loại issue
Lỗi
Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
45/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.