Skip to content

Commit

Permalink
restoring repro for nullable primitives on PetController
Browse files Browse the repository at this point in the history
  • Loading branch information
steve-jansen committed Jul 16, 2013
1 parent 91f5b9c commit 2b28224
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Swagger.Net.WebAPI/Controllers/PetController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class PetController : ApiController
/// GET api/Pet
/// </summary>
/// <returns cref="Pet" type="Pet[]"></returns>
public HttpResponseMessage Get()
public HttpResponseMessage Get(int page = 1, int? size=10)
{
return Request.CreateResponse(HttpStatusCode.OK, new Pet[] { new Pet() { Id=1, Name="Pet #1"} , new Pet() { Id = 2, Name = "Pet #2" } });
}
Expand Down

0 comments on commit 2b28224

Please sign in to comment.