#2991·NSwag

oneOf 对于 C# 生成的类是否没有产生正确的结果?

作者: kendallb创建于 2020年8月8日更新于 2026年9月9日
标签type: discussion

When trying to generate an API client for ShipEngine, NSwag is having issues when using oneOf to combine related entities to indicate that the request can have one of the two values. It ends up just bringing in the type for the first value, but the second is never included. Here is the simplified yaml file:

内容来源: RicoSuter/NSwag