Missing paths for OpenAPI generation
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
まず、openapi/beta/openapi.yaml に生成されたパスを調べ、issue に記載されている place エンティティの定義および想定されるルートと比較します。過去の調査については、関連する OpenAPI.NET.OData issue 720 とメタデータの pull request 850 を確認します。アノテーションまたはジェネレーターの動作が原因かどうかを特定し、不足しているパスを文書化または実装できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
This is potentially related to the issue described above.
When generating the OpenAPI description for Microsoft Graph Beta the building, desk, floor, room, roomlist, section, workspace routes are not generated for those entitytypes. All are derived type of the abstract place type.
<EntitySet Name="places" EntityType="microsoft.graph.place" />
<EntityType Name="place" BaseType="graph.entity" Abstract="true">
....
<NavigationProperty Name="checkIns" Type="Collection(graph.checkInClaim)" ContainsTarget="true" />
</EntityType>
<EntityType Name="building" BaseType="graph.place">
...
<NavigationProperty Name="map" Type="graph.buildingMap" ContainsTarget="true" />
</EntityType>
<EntityType Name="room" BaseType="graph.place">
...
</EntityType>
<EntityType Name="roomList" BaseType="graph.place">
...
<NavigationProperty Name="rooms" Type="Collection(graph.room)" ContainsTarget="true" />
<NavigationProperty Name="workspaces" Type="Collection(graph.workspace)" ContainsTarget="true" />
</EntityType>
<Function Name="descendants" IsBound="true" IsComposable="true">
<Parameter Name="bindingParameter" Type="graph.place" />
<ReturnType Type="Collection(graph.place)" Nullable="false" />
</Function>
Sample of places paths currently supported in our OpenAPI:
/places/{place-id}
/places/{place-id}/checkIns
/places/{place-id}/checkIns/$count
/places/{place-id}/descendants()
/places/{place-id}/graph.room
/places/{place-id}/graph.room/checkIns
/places/{place-id}/graph.room/checkIns/$count
/places/{place-id}/graph.roomList
/places/{place-id}/graph.roomList/checkIns
/places/{place-id}/graph.roomList/rooms
Either we don't currently support this behavior or there are missing annotations used to specify this behavior. This requires investigation.
Expected behavior
Paths that we expect to be in our OpenAPI but are not (same as the list of affected EntityTypes above):
/places/microsoft.graph.building
/places/microsoft.graph.floor
/places/microsoft.graph.desk
/places/room
/places/roomlist
/places/section
/places/workspace
Additional context
https://github.com/microsoftgraph/msgraph-metadata/blob/master/openapi/beta/openapi.yaml to see missing paths.
https://learn.microsoft.com/en-us/graph/api/place-list?view=graph-rest-beta&tabs=http
https://github.com/microsoft/OpenAPI.NET.OData/issues/720
https://github.com/microsoftgraph/msgraph-metadata/pull/850
- 主要言語
- XSLT
- スター
- 171
- フォーク
- 56
- 平均マージ
- 1日 11時間
- マージ済み PR(30日)
- 9
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoftgraph/msgraph-metadata のほかの issue
-
ToTriage
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
microsoftgraph/msgraph-metadata#1217 ·
メンテナーはふだん 2 日以内に返信
-
ToTriage
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
microsoftgraph/msgraph-metadata#1192 ·
メンテナーはふだん 2 日以内に返信
-
ToTriage
難易度 3/5 1〜2日 初心者へのやさしさ 57/100
microsoftgraph/msgraph-metadata#1233 ·
メンテナーはふだん 2 日以内に返信
-
`microsoft.graph.managedDevice` is missing a filter restrictions annotation.対応中かも @esidorenko-sl が 86 日前に担当しました。 オープンToTriage
難易度 3/5 1〜2日 初心者へのやさしさ 72/100
microsoftgraph/msgraph-metadata#1193 · コメント 2 件 ·
メンテナーはふだん 2 日以内に返信
-
ToTriage
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
microsoftgraph/msgraph-metadata#1169 · リアクション 1 件 ·
メンテナーはふだん 2 日以内に返信
microsoftgraph/msgraph-metadata の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
matomo-org/plugin-CustomAlerts#310 ·
メンテナーはふだん 1 日以内に返信
-
bug level:trivial
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
exoego/keycloak-fuhito#666 ·
メンテナーはふだん 1 日以内に返信
-
bug size:small
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
fb55/htmlparser2#2579 ·
メンテナーはふだん 1 日以内に返信