NavigationProperty has all possible methods, while base endpoint only has GET available.

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
csharp
領域
api

調査の方向性

Business Central EDMX を使って変換を再現し、ベースエンドポイントとその NavigationProperty エンドポイントについて生成されたメソッドを比較します。RequireDerivedTypesConstraintForBoundOperations を含む ConvertSettings から始め、OoasUtil が使用するコンバーターのエントリポイントを調査します。ネストされたエンドポイントが、実際に利用可能なメソッドだけを公開すれば完了です。

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

説明

Im pretty new to C# development, so let me know if i need to include more details!

I am trying to use metadata (edmx file) from Business Central to generate swaggerUI docs for our custom API, but im having issues with navigation properties.

The base endpoint gets converted properly, only showing the valid methods for the endpoint:
image

But the NavigationProperty endpoints seem to get generated with no regard to the base endpoint:
image

I tried to use the "RequireDerivedTypesConstraintForBoundOperations" parameter in the ConvertSettings of the OoasUtil tool, with no luck.

Is there a way for me to either configure the converter or edit my edmx file in order to only show actually available methods for "nested" endpoints?

NavigationProperty for EntityType company:
image

EntitySet for custLedgerEntries endpoint:
image

主要言語
C#
スター
240
フォーク
70
平均マージ
7時間 59分
マージ済み PR(30日)
13

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

microsoft/OpenAPI.NET.OData のほかの issue

microsoft/OpenAPI.NET.OData の issue をすべて見る

似ている issue

C# の issue をもっと見る

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

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