RicoSuter / Namotion.Reflection

.NET library with advanced reflection APIs.
MIT License
212 stars 44 forks source link

Upgrading from 3.0.1 to 3.1.0 breaks NSwag documentation #139

Closed 64Soft closed 3 months ago

64Soft commented 11 months ago

When upgrading from Namotion.Reflection package 3.0.1 to 3.1.0, something broke when generating the documentation page using UseSwaggerUi3 with NSwag

This is my code for calling UseSwaggerUi3, pretty basic, and worked fine with Namotion.Reflection 3.0.1

app.UseSwaggerUi3(typeof(Startup).Assembly, settings => { settings.GeneratorSettings.Title = "MyApi"; });

However after updating to 3.1.0, the documentation page yields a 500 error:

image

Downgrading to 3.0.1 makes it work again.

Any settings I should change in the UseSwaggerUi3 parameters ?

I'm using .NET Framework 4.7.2 for this project.

Thanks

Scorpoon commented 10 months ago

Same here. There is already an open issue on the NSwag repo: NSwag Issue

Has been fixed in v14 of the NSwag package