Open szakula-hinda opened 12 months ago
This seems to occur when an endpoint returns a generic type, i.e. the following:
private static async Task<PaginatedList<Foo>> Search()
{
throw new NotImplementedException();
}
public class ApiPaginatedList<T>
{
public int PageIndex { get; set; }
public int TotalPages { get; set; }
public int TotalItems { get; set; }
public IEnumerable<T> Items { get; set; }
}
Doesn't generate? @RicoSuter
Never mind, on deeper inspection constant declarations break this:
https://github.com/RicoSuter/NSwag/assets/1341180/dffeb996-6fea-4859-9b2d-1ff8e1467b01
When upgrading from version 13.20 to 14.0.0-preview010, the following exception occurs when generating the OpenApi document using app.UseOpenApi():