HavenDV / H.NSwag.Generator

C# Source Generator for NSwag.
MIT License
20 stars 3 forks source link

Generator expects fromDocument which isn't available #3

Open virzak opened 1 year ago

virzak commented 1 year ago

Describe the bug

When using a standard nswag file, the file generator fails since.

Steps to reproduce the bug

Use this library with the example .nswag above and you'll get an exception in this line:

https://github.com/HavenDV/H.NSwag.Generator/blob/019ab78ff4043fef49dc5d62a5fe755e28dba265/src/libs/H.NSwag.Generator/NSwagGenerator.cs

Expected behavior

No response

Screenshots

No response

NuGet package version

No response

IDE

Visual Studio 2022-preview

Additional context

No response

HavenDV commented 1 year ago

I guess I just didn't expect this use case. I will try it when I have free time