Skip to content

Commit 10d23c1

Browse files
Chris Martinezcommonsensesoftware
authored andcommitted
Use correct models in response type
1 parent a836f16 commit 10d23c1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

samples/aspnetcore/SwaggerODataSample/V2/PeopleController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public IActionResult Get( int key, ODataQueryOptions<Person> options )
118118
/// <response code="200">The people were successfully retrieved.</response>
119119
[HttpGet]
120120
[Produces( "application/json" )]
121-
[ProducesResponseType( typeof( ODataValue<IEnumerable<Order>> ), Status200OK )]
121+
[ProducesResponseType( typeof( ODataValue<IEnumerable<Person>> ), Status200OK )]
122122
public IActionResult NewHires( DateTime since, ODataQueryOptions<Person> options ) => Get( options );
123123
}
124124
}

samples/aspnetcore/SwaggerODataSample/V3/PeopleController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public IActionResult Post( [FromBody] Person person )
144144
/// <response code="200">The people were successfully retrieved.</response>
145145
[HttpGet]
146146
[Produces( "application/json" )]
147-
[ProducesResponseType( typeof( ODataValue<IEnumerable<Order>> ), Status200OK )]
147+
[ProducesResponseType( typeof( ODataValue<IEnumerable<Person>> ), Status200OK )]
148148
public IActionResult NewHires( DateTime since, ODataQueryOptions<Person> options ) => Get( options );
149149

150150
/// <summary>

0 commit comments

Comments
 (0)