Re: Swagger reports Inline Model when returning List

2016-10-17 Thread 'Mark Kenyon II' via Swagger
We're registering Swagger in global.asax like this: protected void Application_Start() { // Route any 'Swagger' calls to the swagger api RouteTable.Routes.MapOwinPath("swagger", app => {

Re: Swagger reports Inline Model when returning List

2016-10-17 Thread tony tam
I’m guessing from your sample, that the swagger definition is automatically extracted from your code, and that code looks like C#. What library are you using? > On Oct 17, 2016, at 9:12 AM, 'Mark Kenyon II' via Swagger > wrote: > > I'm not sure what

Swagger reports Inline Model when returning List

2016-10-17 Thread 'Mark Kenyon II' via Swagger
I'm trying to get Swagger to recognize the type returned by my Action/Method in my C# Web Api. I've coded my method like this: [HttpGet] [Route("api/categories/top")] [ResponseType("200", typeof(List)), ResponseType("500", typeof(Exception))] public async Task