Some Complex types are getting a Microsoft.graph.entity base type during processing which is incorrect

オープン
#830 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
20/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
領域
tooling

調査の方向性

まず、1692行目付近の ApiDoctor.Console/Program.cs を確認し、列挙されている型と生成された TeamsLicensingDetails.cs モデルを比較します。基底型がどのように割り当てられているかを確認し、関連する生成モデルを調査します。この issue は副作用を記録していますが、変更を行うことを明示的には要求していないため、完了基準は定義されていません。

索引モデルが issue の本文から書いたものです。

説明

ToTriage

cloudPcForensicStorageAccount
cloudPcPolicyApplyActionResult
cloudPcPolicyScheduledApplyActionDetail
cloudPcSubscription
customQuestionAnswer
deviceLocalCredential
teamsLicensingDetails
aiInteractionAttachment
aiInteractionContext
aiInteractionLink
aiInteractionMention

All have a base type of entity, which semantically is wrong.

This is most likely caused by this line
https://github.com/OneDrive/apidoctor/blame/f63e4085fc133a04e86c640dced1c36b1e8df46e/ApiDoctor.Console/Program.cs#L1692

causing the types that are actually getting generated to inherit from entity https://github.com/microsoftgraph/msgraph-sdk-dotnet/blob/7fc9ce7d9db18155e0e2ef3cd61e34d4d47e7f30/src/Microsoft.Graph/Generated/Models/TeamsLicensingDetails.cs#L12

Side effects being:

  • extraneous id property
  • inaccurate inheritance structure

Touching api doctor is a huge risk, and a huge cost, and the negative effects do not mandate this at this time. Logging for historical purposes.

主要言語
XSLT
スター
171
フォーク
56
平均マージ
1日 11時間
マージ済み PR(30日)
9

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoftgraph/msgraph-metadata のほかの issue

microsoftgraph/msgraph-metadata の issue をすべて見る

似ている issue

DevTools の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。