Fix beta Security OpenAPI schemas generating undefined C# types
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
- 55/100
Direzione di ricerca
Inizia individuando le trasformazioni OpenAPI di origine per gli schemi securityCopilot.prompt.inputs e detectionAction.responseActions, quindi confrontale con la rappresentazione di oggetti in formato libero supportata dal generatore. Rigenera e compila il modulo beta Security per confermare la validità dei tipi C#, quindi rimuovi le direttive temporanee per la rimozione delle proprietà da src/Security/Security.md.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problem
The refreshed beta Security OpenAPI document contains two free-form object schemas that AutoREST.PowerShell generates as the invalid C# type undefined.undefined:
microsoft.graph.security.securityCopilot.prompt.inputs- References
microsoft.graph.Dictionary. microsoft.graph.Dictionaryis defined astype: objectwithadditionalProperties: { type: object }.
- References
microsoft.graph.security.detectionAction.responseActions[]- References
microsoft.graph.security.responseAction. microsoft.graph.security.responseActionis an emptytype: objectwithadditionalProperties: { type: object }.
- References
The generated beta Security module fails C# compilation with errors such as:
error CS0246: The type or namespace name 'undefined' could not be found
Affected generated models include:
MicrosoftGraphSecurityCopilotPromptMicrosoftGraphSecurityDetectionAction
Required OpenAPI correction
Update these schemas to use concrete, generator-supported types. If these values are intentionally arbitrary JSON, model them using the supported free-form object representation rather than an object whose values are themselves untyped objects. The exact schema should reflect the API contract for:
- Security Copilot prompt input values
- Custom detection response actions
Temporary SDK workaround
PR #3701 removes only these two properties from AutoREST's in-memory OpenAPI document using directives in src/Security/Security.md:
microsoft.graph.security.securityCopilot.prompt.inputsmicrosoft.graph.security.detectionAction.responseActions
This preserves the associated endpoints and other model properties while allowing beta Security generation and compilation to complete.
Completion criteria
- Correct both schemas in the source OpenAPI transforms.
- Confirm AutoREST.PowerShell generates valid C# types for both properties.
- Remove the temporary property-removal directives from
src/Security/Security.md. - Regenerate and build the beta Security module successfully.
Related: #3701
- Lingua principale
- C#
- Stelle
- 902
- Fork
- 233
- Merge medio
- 1g 20h
- PR unite (30g)
- 30
Preparare l'ambiente
- Include un Dockerfile o un 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 microsoftgraph/msgraph-sdk-powershell
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
microsoftgraph/msgraph-sdk-powershell#3752 ·
I maintainer di solito rispondono entro 1 giorno
-
status:waiting-for-triage type:bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 22/100
microsoftgraph/msgraph-sdk-powershell#3822 ·
I maintainer di solito rispondono entro 1 giorno
-
Microsoft.Graph.Authentication dependency Microsoft.Graph.Authentication.Loader.dll is unsignedApertastatus:waiting-for-triage type:bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
microsoftgraph/msgraph-sdk-powershell#3819 ·
I maintainer di solito rispondono entro 1 giorno
-
Connect-MgGraph on 2.41 crashes when making a connection with cert, fixes when using 2.39 or lowerApertastatus:waiting-for-triage type:bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
microsoftgraph/msgraph-sdk-powershell#3816 ·
I maintainer di solito rispondono entro 1 giorno
-
status:waiting-for-triage type:feature
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
microsoftgraph/msgraph-sdk-powershell#3806 · 3 commenti · 3 reazioni ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di microsoftgraph/msgraph-sdk-powershell
Issue simili
-
[Tool] DirectBenchApertahas-image has-readme needs-attention new-tool repo-verified
Difficoltà 1/5 1-3 ore Idoneità per principianti 62/100
shanselman/TinyToolTown#844 · 2 commenti ·
I maintainer di solito rispondono entro 3 giorni
-
[i18n] 安装实例完成后的成功提示未正确本地化Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
PCL-Community/PCL-CE#3658 ·
I maintainer di solito rispondono entro 1 giorno
-
Deploy & Patch-issues opprettes ikke: create-pnd-issues.yml har feilet hver uke siden 2025-09-08Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
Altinn/altinn-auth#4359 ·
I maintainer di solito rispondono entro 1 giorno
-
アプリ: チャット 優先: 中 提案
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
yksr-melt/Meltype#243 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Workflows: a workflow stored with null conditions is skipped with an exception instead of runApertabug core
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno