[MsGraph] Command models expose a reduced property set, so Format-List * and -Select cannot surface full Graph payload
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 38/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- C#
- Stelle
- 18
- Fork
- 10
- Merge medio
- 1g 20h
- PR unite (30g)
- 157
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Azure/azclips
-
act-identity-squad bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
I maintainer di solito rispondono entro 1 giorno
-
act-identity-squad bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
act-identity-squad bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
act-identity-squad bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
Azure/azclips#1512 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
[Agent] Interactive recovery runs shell commands in the install folder, not the user's folderApertaact-experience-enablement-squad bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di Azure/azclips
Issue simili
-
launcher item missingAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
Realm667/WolfenDoom#1758 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
-
AI documentation good first issue help wanted
Difficoltà 1/5 1-3 ore Idoneità per principianti 84/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
akshit-bansal11/edgepad#106 ·
I maintainer di solito rispondono entro 1 giorno