Skip to content

Commit

Permalink
Grammatical correction of some comments (#2768)
Browse files Browse the repository at this point in the history
Grammatical correction of some comments.
  • Loading branch information
mokarchi committed Apr 14, 2024
1 parent 9e77996 commit 830c5a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -27,8 +27,8 @@ public void Apply(OpenApiOperation operation, OperationFilterContext context)
}
#endif

// NOTE: When controller and action attributes are applicable, action attributes should take precendence.
// Hence why they're at the end of the list (i.e. last one wins).
// NOTE: When controller and action attributes are applicable, action attributes should take priority.
// Hence, why they're at the end of the list (i.e. last one wins).
// Distinct() is applied due to an ASP.NET Core issue: https://github.com/dotnet/aspnetcore/issues/34199.
var allAttributes = controllerAttributes
.Union(actionAttributes)
Expand Down
Expand Up @@ -22,7 +22,7 @@ public void Apply(OpenApiSchema schema, SchemaFilterContext context)
ApplyTypeAnnotations(schema, context);

// NOTE: It's possible for both MemberInfo and ParameterInfo to have non-null values - i.e. when the schema is for a property
// within a class that is bound to a parameter. In this case, the MemberInfo should take precendence.
// within a class that is bound to a parameter. In this case, the MemberInfo should take precedence.

if (context.MemberInfo != null)
{
Expand Down

0 comments on commit 830c5a6

Please sign in to comment.