Skip to content

Commit

Permalink
Simplify mock requests. Fixes #41
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Beauchamp committed Dec 30, 2015
1 parent dfef2be commit a139e32
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Swashbuckle.OData.Nuget/Swashbuckle.OData.NuGet.nuproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@
<Owners>Richard Beauchamp</Owners>
<Summary>Extends Swashbuckle with OData v4 support!</Summary>
<Description>Extends Swashbuckle with OData v4 support!</Description>
<ReleaseNotes>Support constructor dependency injection. Improve error detection and handling.</ReleaseNotes>
<ReleaseNotes>Support constructor dependency injection. Improve error detection and handling. Fix issue 41.</ReleaseNotes>
<ProjectUrl>https://github.com/rbeauchamp/Swashbuckle.OData</ProjectUrl>
<LicenseUrl>https://github.com/rbeauchamp/Swashbuckle.OData/blob/master/License.txt</LicenseUrl>
<Copyright>Copyright 2015</Copyright>
<Tags>Swashbuckle Swagger SwaggerUi OData Documentation Discovery Help WebApi AspNet AspNetWebApi Docs WebHost IIS</Tags>
<Version>2.8.3</Version>
<Version>2.8.4</Version>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Swashbuckle.OData\Swashbuckle.OData.csproj" />
Expand Down
5 changes: 1 addition & 4 deletions Swashbuckle.OData/Descriptions/SwaggerRouteStrategy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,7 @@ private static HttpRequestMessage CreateHttpRequestMessage(HttpMethod httpMethod
httpRequestMessageProperties.RouteName = oDataRoute.GetODataPathRouteConstraint().RouteName;
httpRequestMessageProperties.RoutingConventions = oDataRoute.GetODataPathRouteConstraint().RoutingConventions;
httpRequestMessageProperties.PathHandler = oDataRoute.GetODataPathRouteConstraint().PathHandler;
var httpRouteCollection = httpConfig.Routes;
Contract.Assume(httpRouteCollection != null);
var routeData = httpRouteCollection.GetRouteData(httpRequestMessage);
httpRequestMessage.SetRouteData(routeData);
httpRequestMessage.SetRouteData(oDataRoute.GetRouteData("/", httpRequestMessage));
return httpRequestMessage;
}

Expand Down
2 changes: 1 addition & 1 deletion Swashbuckle.OData/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@

[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("2.8.3")]
[assembly: AssemblyInformationalVersion("2.8.4")]

0 comments on commit a139e32

Please sign in to comment.