Skip to content

Commit 0731f46

Browse files
authored
Fix awkward grammar (#1918)
* Fix awkward grammar enables to allows to with gerund forms * Run code cleanup
1 parent bf1b968 commit 0731f46

33 files changed

Lines changed: 67 additions & 65 deletions

File tree

benchmarks/Tools/FakeRequestQueryStringAccessor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace Benchmarks.Tools;
66

77
/// <summary>
8-
/// Enables to inject a query string, instead of obtaining it from <see cref="HttpContext" />.
8+
/// Enables injecting a query string, instead of obtaining it from <see cref="HttpContext" />.
99
/// </summary>
1010
internal sealed class FakeRequestQueryStringAccessor : IRequestQueryStringAccessor
1111
{

docs/usage/faq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ You'll need to build the resource graph on the client and rely on internal imple
2222
Due to auto-generated controllers, you may find it hard to determine where to put your breakpoints.
2323
In Visual Studio, controllers are accessible below **Solution Explorer > Project > Dependencies > Analyzers > JsonApiDotNetCore.SourceGenerators**.
2424

25-
After turning on [Source Link](https://devblogs.microsoft.com/dotnet/improving-debug-time-productivity-with-source-link/#enabling-source-link) (which enables to download the JsonApiDotNetCore source code from GitHub), you can step into our source code and add breakpoints there too.
25+
After turning on [Source Link](https://devblogs.microsoft.com/dotnet/improving-debug-time-productivity-with-source-link/#enabling-source-link) (which enables downloading the JsonApiDotNetCore source code from GitHub), you can step into our source code and add breakpoints there too.
2626

2727
Here are some key places in the execution pipeline to set a breakpoint:
2828
- `JsonApiRoutingConvention.Apply`: Controllers are registered here (executes once at startup)

docs/usage/openapi-documentation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ After [enabling OpenAPI](~/usage/openapi.md), you can expose a documentation web
77

88
## SwaggerUI
99

10-
[SwaggerUI](https://swagger.io/tools/swagger-ui/) enables to visualize and interact with the JSON:API endpoints through a web page.
10+
[SwaggerUI](https://swagger.io/tools/swagger-ui/) enables visualizing and interacting with the JSON:API endpoints through a web page.
1111
While it conveniently provides the ability to execute requests, it doesn't show properties of derived types when component schema inheritance is used.
1212

1313
SwaggerUI can be enabled by installing the `Swashbuckle.AspNetCore.SwaggerUI` NuGet package and adding the following to your `Program.cs` file:

docs/usage/openapi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
44
# OpenAPI
55

6-
Exposing an [OpenAPI document](https://swagger.io/specification/) for your JSON:API endpoints enables to provide a
7-
[documentation website](https://swagger.io/tools/swagger-ui/) and to generate typed
6+
Exposing an [OpenAPI document](https://swagger.io/specification/) for your JSON:API endpoints enables providing a
7+
[documentation website](https://swagger.io/tools/swagger-ui/) and generating typed
88
[client libraries](https://openapi-generator.tech/docs/generators/) in various languages.
99

1010
The [JsonApiDotNetCore.OpenApi.Swashbuckle](https://github.com/json-api-dotnet/JsonApiDotNetCore/pkgs/nuget/JsonApiDotNetCore.OpenApi.Swashbuckle) NuGet package

docs/usage/resources/inheritance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ Resource definitions provide a better solution, see below.
289289
### Resource definitions
290290

291291
In contrast to the request pipeline, JsonApiDotNetCore always executes the resource definition that matches the *stored* type.
292-
This enables to implement business logic in a central place, irrespective of which endpoint was used or whether base types were used in relationships.
292+
This enables implementing business logic in a central place, irrespective of which endpoint was used or whether base types were used in relationships.
293293

294294
To delegate logic for base types to their matching resource type, you can build a chain of resource definitions. And because you'll always get the
295295
actually stored types (for relationships too), you can type-check left-side and right-side types in resources definitions.

src/Examples/DapperExample/TranslationToSql/Builders/SelectStatementBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ private sealed class QueryState
746746

747747
public ILoggerFactory LoggerFactory { get; }
748748

749-
// Prevents importing a table multiple times and enables to reference a table imported by an inner/outer query.
749+
// Prevents importing a table multiple times and enables referencing a table imported by an inner/outer query.
750750
// In case of sub-queries, this may include temporary tables that won't survive in the final query.
751751
public Dictionary<TableAccessorNode, Dictionary<RelationshipAttribute, TableAccessorNode>> RelatedTables { get; } = [];
752752

src/Examples/OpenApiKiotaClientExample/Worker.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ private async Task UpdatePersonAsync(CancellationToken cancellationToken)
9393
Id = "1",
9494
Attributes = new AttributesInUpdatePersonRequest
9595
{
96-
// The --backing-store switch enables to send null and default values.
96+
// The --backing-store switch enables sending null and default values.
9797
FirstName = null,
9898
LastName = "Doe"
9999
}
@@ -145,7 +145,7 @@ private async Task SendOperationsRequestAsync(CancellationToken cancellationToke
145145
Lid = "new-person",
146146
Attributes = new AttributesInUpdatePersonRequest
147147
{
148-
// The --backing-store switch enables to send null and default values.
148+
// The --backing-store switch enables sending null and default values.
149149
FirstName = null
150150
}
151151
}

src/JsonApiDotNetCore.Annotations/Resources/RuntimeTypeConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public static class RuntimeTypeConverter
3838
// Earlier versions of JsonApiDotNetCore failed to pass CultureInfo.InvariantCulture in the parsing below, which resulted in the 'current'
3939
// culture being used. Unlike parsing JSON request/response bodies, this effectively meant that query strings were parsed based on the
4040
// OS-level regional settings of the web server.
41-
// Because this was fixed in a non-major release, the switch below enables to revert to the old behavior.
41+
// Because this was fixed in a non-major release, the switch below enables reverting to the old behavior.
4242

4343
// With the switch activated, API developers can still choose between:
4444
// - Requiring localized date/number formats: parsing occurs using the OS-level regional settings (the default).

src/JsonApiDotNetCore.Annotations/TypeExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public static bool IsOrImplementsInterface<TInterface>(this Type? source)
1111
}
1212

1313
/// <summary>
14-
/// Whether the specified source type implements or equals the specified interface. This overload enables to test for an open generic interface.
14+
/// Whether the specified source type implements or equals the specified interface. This overload enables testing for an open generic interface.
1515
/// </summary>
1616
private static bool IsOrImplementsInterface(this Type? source, Type interfaceType)
1717
{

src/JsonApiDotNetCore.OpenApi.Swashbuckle/SchemaGenerationTracer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
namespace JsonApiDotNetCore.OpenApi.Swashbuckle;
77

88
/// <summary>
9-
/// Enables to log recursive component schema generation at trace level.
9+
/// Enables logging recursive component schema generation at trace level.
1010
/// </summary>
1111
internal sealed partial class SchemaGenerationTracer
1212
{

0 commit comments

Comments
 (0)