Skip to content

Commit 6eb9084

Browse files
authored
Fix typos (#237)
### Motivation Only solving typos ### Modifications Fixed obvious typos, and ended one unfinished sentence. No source code changed. ### Result Correct English. ### Test Plan All tests pass.
1 parent 6a81c26 commit 6eb9084

File tree

9 files changed

+10
-10
lines changed

9 files changed

+10
-10
lines changed

Sources/_OpenAPIGeneratorCore/Renderer/TextBasedRenderer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ struct TextBasedRenderer: RendererProtocol {
271271
"&" + renderedExpression(description.referencedExpr)
272272
}
273273

274-
/// Renders the specified optinal chaining expression.
274+
/// Renders the specified optional chaining expression.
275275
func renderedOptionalChainingDescription(
276276
_ description: OptionalChainingDescription
277277
) -> String {

Sources/_OpenAPIGeneratorCore/Translator/CommonTranslations/translateSchema.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ extension FileTranslator {
2626
/// - Parameters:
2727
/// - typeName: The name of the type to give to the declared type.
2828
/// - schema: The JSON schema representing the type.
29-
/// - overrides: A structure with the properties that should be overriden
29+
/// - overrides: A structure with the properties that should be overridden
3030
/// instead of extracted from the schema.
3131
func translateSchema(
3232
typeName: TypeName,
@@ -64,7 +64,7 @@ extension FileTranslator {
6464
/// - Parameters:
6565
/// - typeName: The name of the type to give to the declared type.
6666
/// - schema: The JSON schema representing the type.
67-
/// - overrides: A structure with the properties that should be overriden
67+
/// - overrides: A structure with the properties that should be overridden
6868
/// instead of extracted from the schema.
6969
func translateSchema(
7070
typeName: TypeName,

Sources/_OpenAPIGeneratorCore/Translator/Responses/TypedResponse.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ extension FileTranslator {
3131
/// Returns a typed response for the specified unresolved response.
3232
/// - Parameters:
3333
/// - unresolvedResponse: An unresolved response.
34-
/// - operation: The operation in which the response resi.
34+
/// - operation: The operation in which the response resides.
3535
/// - Returns: A typed response.
3636
func typedResponse(
3737
from outcome: OpenAPI.Operation.ResponseOutcome,

Sources/_OpenAPIGeneratorCore/Translator/Responses/translateResponseHeader.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ extension TypesFileTranslator {
8888

8989
extension ClientFileTranslator {
9090

91-
/// Returns an expression that extracts the value of thespecified response
91+
/// Returns an expression that extracts the value of the specified response
9292
/// header from a property on an Input value to a request.
9393
/// - Parameters:
9494
/// - header: The response header to extract.

Sources/_OpenAPIGeneratorCore/Translator/TypeAssignment/TypeMatcher.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ struct TypeMatcher {
2929
///
3030
/// # Examples
3131
///
32-
/// Examples of schemas that can be repreresented directly by builtin types:
32+
/// Examples of schemas that can be represented directly by builtin types:
3333
/// - platform builtin types
3434
/// - `type: string` -> `Swift.String`
3535
/// - `type: string, format: date-time` -> `Foundation.Date`

Sources/_OpenAPIGeneratorCore/Translator/TypeAssignment/TypeName.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
//===----------------------------------------------------------------------===//
1414
import Foundation
1515

16-
/// A fully-qualitied type name that contains the components of both the Swift
16+
/// A fully-qualified type name that contains the components of both the Swift
1717
/// type name and the optional JSON reference.
1818
///
1919
/// Use the type name to define a type, see also `TypeUsage` when referring

Sources/swift-openapi-generator/Documentation.docc/Articles/Manually-invoking-the-generator-CLI.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The recommended workflow is to use the Swift package plugin, as described in our
1010
- <doc:ClientXcode>
1111
- <doc:ServerSwiftPM>
1212

13-
When using the package plugin, the code is generated at build time and is not commited to your source repository.
13+
When using the package plugin, the code is generated at build time and is not committed to your source repository.
1414

1515
If you need to commit the generated code to your source repository (for example, for auditing reasons) you can manually invoke the generator CLI to generate the Swift code.
1616

Sources/swift-openapi-generator/Documentation.docc/Development/Converting-between-data-and-Swift-types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Converting between data and Swift types
22

3-
Learn about the type responsible for convertering between binary data and Swift types.
3+
Learn about the type responsible for converting between binary data and Swift types.
44

55
## Overview
66

Sources/swift-openapi-generator/Documentation.docc/Development/Documentation-for-maintainers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Learn about the internals of Swift OpenAPI Generator.
66

77
Swift OpenAPI Generator contains multiple moving pieces, from the runtime library, to the generator CLI, plugin, to extension packages using the transport and middleware APIs.
88

9-
Use the resources below if you'd like to learn more about how the generator works under the hood, for example as part of contribututing a new feature to it.
9+
Use the resources below if you'd like to learn more about how the generator works under the hood, for example as part of contributing a new feature to it.
1010

1111
## Topics
1212

0 commit comments

Comments
 (0)