From de428de522a3b1498a6af1f410d4f54335e4b5b6 Mon Sep 17 00:00:00 2001 From: Harrison Ulrich Date: Fri, 15 Jan 2016 17:22:07 -0600 Subject: [PATCH] fix for issue #55 - $expand not showing as a parameter on single entity queries --- Swashbuckle.OData/Descriptions/ODataSwaggerUtilities.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Swashbuckle.OData/Descriptions/ODataSwaggerUtilities.cs b/Swashbuckle.OData/Descriptions/ODataSwaggerUtilities.cs index d68e69e..4b157bc 100644 --- a/Swashbuckle.OData/Descriptions/ODataSwaggerUtilities.cs +++ b/Swashbuckle.OData/Descriptions/ODataSwaggerUtilities.cs @@ -89,9 +89,8 @@ public static PathItem CreateSwaggerPathForEntity(IEdmEntitySet entitySet) .Description("Returns the entity with the key from " + entitySet.Name) .Tags(entitySet.Name) .Parameters(keyParameters.DeepClone() - .Parameter("$expand", "query", "Expands related entities inline.", "string", false)) - .Parameters(keyParameters.DeepClone() - .Parameter("$select", "query", "Selects which properties to include in the response.", "string", false)) + .Parameter("$expand", "query", "Expands related entities inline.", "string", false) + .Parameter("$select", "query", "Selects which properties to include in the response.", "string", false)) .Responses(new Dictionary().Response("200", "EntitySet " + entitySet.Name, entitySet.GetEntityType()).DefaultErrorResponse()), patch = new Operation()