Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
using System.Reflection;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc.Routing;
using Microsoft.AspNetCore.OData.Abstracts;
using Microsoft.AspNetCore.OData.Edm;
using Microsoft.AspNetCore.OData.Formatter;
Expand Down Expand Up @@ -97,7 +98,8 @@ internal static bool IsMinimalEndpoint(this HttpContext httpContext)

// Check if the endpoint is a minimal endpoint.
var endpoint = httpContext.GetEndpoint();
return endpoint?.Metadata.GetMetadata<ODataMiniMetadata>() != null;
return endpoint?.Metadata.GetMetadata<HttpMethodAttribute>() == null
&& endpoint?.Metadata.GetMetadata<ODataMiniMetadata>() != null;
}

internal static IEdmModel GetOrCreateEdmModel(this HttpContext httpContext, Type clrType, ParameterInfo parameter = null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class SearchProduct

public SearchCategory Category { get; set; }

public List<SearchTag> Tags { get; set; }// List of tags
public List<SearchTag> Tags { get; set; } // List of tags
}

public class SearchCategory
Expand Down