Skip to content

Commit

Permalink
Grammatical correction of some comments (domaindrivendev#2768)
Browse files Browse the repository at this point in the history
Grammatical correction of some comments.
  • Loading branch information
mokarchi authored and jcracknell committed Apr 15, 2024
1 parent ea500ed commit 2f182a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 2f182a4

Please sign in to comment.