diff --git a/src/Swashbuckle.AspNetCore.Annotations/AnnotationsOperationFilter.cs b/src/Swashbuckle.AspNetCore.Annotations/AnnotationsOperationFilter.cs index 23855e4dfe..370108501c 100644 --- a/src/Swashbuckle.AspNetCore.Annotations/AnnotationsOperationFilter.cs +++ b/src/Swashbuckle.AspNetCore.Annotations/AnnotationsOperationFilter.cs @@ -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) diff --git a/src/Swashbuckle.AspNetCore.Annotations/AnnotationsSchemaFilter.cs b/src/Swashbuckle.AspNetCore.Annotations/AnnotationsSchemaFilter.cs index 2f27ddb75f..36101012fe 100644 --- a/src/Swashbuckle.AspNetCore.Annotations/AnnotationsSchemaFilter.cs +++ b/src/Swashbuckle.AspNetCore.Annotations/AnnotationsSchemaFilter.cs @@ -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) {