Nswag: SwaggerUiSettings is now a generic but the documentation doesn't how show to use it as such.

Created on 21 Mar 2018  路  4Comments  路  Source: RicoSuter/NSwag

Version 11.16.0

Trying out NSwag in Asp.NET Core and the example in the wiki contains the following line.

app.UseSwaggerUi(typeof(Startup).GetTypeInfo().Assembly, new SwaggerUiSettings()

In visual studio SwaggerUiSettings is underlined with the error description Using the generic type 'SwaggerUiSettings<T>' requires 1 type arguments

Reverted to 11.15.4 and the error disappears.

done question

Most helpful comment

All 4 comments

Looks good. Thanks.

Thanks for fixing the typos!

Was this page helpful?
0 / 5 - 0 ratings