microsoft / microsoft/OpenAPI.NET.OData
NavigationProperty has all possible methods, while base endpoint only has GET available.
还没有人认领这个 Issue。
- 主要语言
- C#
- 星标
- 240
- 派生
- 70
- 平均合并
- 7 小时 59 分钟
- 30 天内合并 PR
- 13
描述
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:
But the NavigationProperty endpoints seem to get generated with no regard to the base endpoint:
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:
EntitySet for custLedgerEntries endpoint:
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
使用 Business Central EDMX 重现转换,并比较为基础 endpoint 及其 NavigationProperty endpoint 生成的方法。从 ConvertSettings 开始,包括 RequireDerivedTypesConstraintForBoundOperations,并检查 OoasUtil 使用的转换器入口点。完成标准是嵌套 endpoint 仅暴露它们实际可用的方法。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- csharp
- 领域
- api
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 35/100