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()