RicoSuter/NSwag

Exception occurring during c# client generation using any code generation method

Open

#2,885 创建于 2020年6月10日

在 GitHub 查看
 (1 评论) (0 反应) (0 负责人)C# (6,291 star) (1,189 fork)batch import
help wantedtype: bug

描述

While generating the c# client for an api an exception occurs. I isolated the smallest section of the API that fails and it can bee seen in the attached "sample-api.txt" file (json) The issue appears related to having an example node under the content type section (application/json) without having an schema node. That particular scenario is not flagged as an error is Swagger and the documentation does not point to schema being a mandatory node. sample-api.txt

贡献者指南