[MsGraph] Command models expose a reduced property set, so Format-List * and -Select cannot surface full Graph payload
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 38/100
Hướng nghiên cứu
Start by comparing the Application model with User, Group and DirectoryObject, which already carry the [JsonExtensionData] bag, then read the TypeSpec/codegen template that emits these models to see whether the bag can be added for every type. Decide with maintainers whether to expose all Graph fields or a curated subset before writing code. Done means Get-AzMsGraphApplication -Id <appId> | Format-List * shows the fields Graph returned, or an agreed explicit property set is modeled.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Target surface
Both
What problem are you trying to solve?
The MsGraph command models keep only a small subset of the fields Microsoft Graph returns, with no extension-data capture. As a result, properties that Graph actually returned are dropped during deserialization, so Format-List *, Select-Object , and -Select cannot surface them. Users cannot retrieve the full object even when Graph sent it.
- Get-AzMsGraphApplication -Id
- Pipe to Format-List *
- Only the modeled fields appear, not the full set Graph returned.
Proposed solution
Option 1 (interim): add an extension-data bag to Application. Mirror the pattern User, Group, and DirectoryObject already use, so unmapped Graph fields are retained:
[JsonExtensionData]
public Dictionary<string, JsonElement>? AdditionalProperties { get; set; }
Option 2 (proper fix): let codegen emit the full set. Since these models are codegen-owned, have the generator or TypeSpec model template either emit the complete property set for each type or always include the [JsonExtensionData] bag. That closes the gap consistently across all current and future models rather than patching one model at a time.
Alternatives or workarounds
No response
Additional context
We need to consider what properties we want to expose. There is a lot of them and they may not add user value and instead create noise.
If this is the case and we want a subset only we need to move the AdditionalProperties from all the commands and manually add the full model of what we do want to expose.
- Ngôn ngữ chính
- C#
- Star
- 18
- Fork
- 10
- Merge trung bình
- 1 ngày 20 giờ
- Pull request đã merge (30 ngày)
- 157
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Azure/azclips
-
act-identity-squad bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
Maintainer thường phản hồi trong vòng 1 ngày
-
act-identity-squad bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
act-identity-squad bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
act-identity-squad bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Azure/azclips#1512 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Agent] Interactive recovery runs shell commands in the install folder, not the user's folderĐang mởact-experience-enablement-squad bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của Azure/azclips
Issue tương tự
-
launcher item missingĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Realm667/WolfenDoom#1758 ·
-
SDK version compatibility issueĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
-
AI documentation good first issue help wanted
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 84/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
akshit-bansal11/edgepad#106 ·
Maintainer thường phản hồi trong vòng 1 ngày