Skip to content

Commit c59fd1b

Browse files
committed
fix comment typos
1 parent 94c811e commit c59fd1b

File tree

15 files changed

+18
-18
lines changed

15 files changed

+18
-18
lines changed

src/Microsoft.OpenApi.Readers/Interface/IStreamLoader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public interface IStreamLoader
1717
/// Use Uri to locate data and convert into an input object.
1818
/// </summary>
1919
/// <param name="uri">Identifier of some source of an OpenAPI Description</param>
20-
/// <returns>A data objext that can be processed by a reader to generate an <see cref="OpenApiDocument"/></returns>
20+
/// <returns>A data object that can be processed by a reader to generate an <see cref="OpenApiDocument"/></returns>
2121
Task<Stream> LoadAsync(Uri uri);
2222

2323
/// <summary>

src/Microsoft.OpenApi.Readers/ParsingContext.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public class ParsingContext
3939
/// <summary>
4040
/// Create Parsing Context
4141
/// </summary>
42-
/// <param name="diagnostic">Provide instance for diagnotic object for collecting and accessing information about the parsing.</param>
42+
/// <param name="diagnostic">Provide instance for diagnostic object for collecting and accessing information about the parsing.</param>
4343
public ParsingContext(OpenApiDiagnostic diagnostic)
4444
{
4545
Diagnostic = diagnostic;
@@ -165,7 +165,7 @@ public T GetFromTempStorage<T>(string key, object scope = null)
165165
}
166166

167167
/// <summary>
168-
/// Sets the temporary storge for this key and value.
168+
/// Sets the temporary storage for this key and value.
169169
/// </summary>
170170
public void SetTempStorage(string key, object value, object scope = null)
171171
{

src/Microsoft.OpenApi.Readers/V2/OpenApiV2VersionService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ internal class OpenApiV2VersionService : IOpenApiVersionService
2424
/// <summary>
2525
/// Create Parsing Context
2626
/// </summary>
27-
/// <param name="diagnostic">Provide instance for diagnotic object for collecting and accessing information about the parsing.</param>
27+
/// <param name="diagnostic">Provide instance for diagnostic object for collecting and accessing information about the parsing.</param>
2828
public OpenApiV2VersionService(OpenApiDiagnostic diagnostic)
2929
{
3030
Diagnostic = diagnostic;

src/Microsoft.OpenApi.Readers/V3/OpenApiV3VersionService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ internal class OpenApiV3VersionService : IOpenApiVersionService
2626
/// <summary>
2727
/// Create Parsing Context
2828
/// </summary>
29-
/// <param name="diagnostic">Provide instance for diagnotic object for collecting and accessing information about the parsing.</param>
29+
/// <param name="diagnostic">Provide instance for diagnostic object for collecting and accessing information about the parsing.</param>
3030
public OpenApiV3VersionService(OpenApiDiagnostic diagnostic)
3131
{
3232
Diagnostic = diagnostic;
@@ -68,7 +68,7 @@ public OpenApiV3VersionService(OpenApiDiagnostic diagnostic)
6868
/// Parse the string to a <see cref="OpenApiReference"/> object.
6969
/// </summary>
7070
/// <param name="reference">The URL of the reference</param>
71-
/// <param name="type">The type of object refefenced based on the context of the reference</param>
71+
/// <param name="type">The type of object referenced based on the context of the reference</param>
7272
public OpenApiReference ConvertToOpenApiReference(
7373
string reference,
7474
ReferenceType? type)

src/Microsoft.OpenApi/Interfaces/IOpenApiExtension.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
namespace Microsoft.OpenApi.Interfaces
77
{
88
/// <summary>
9-
/// Interface requuired for implementing any custom extension
9+
/// Interface required for implementing any custom extension
1010
/// </summary>
1111
public interface IOpenApiExtension
1212
{

src/Microsoft.OpenApi/Interfaces/IOpenApiSerializable.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
namespace Microsoft.OpenApi.Interfaces
77
{
88
/// <summary>
9-
/// Represents an Open API element that comes with serialzation functionality.
9+
/// Represents an Open API element that comes with serialization functionality.
1010
/// </summary>
1111
public interface IOpenApiSerializable : IOpenApiElement
1212
{

src/Microsoft.OpenApi/Models/OpenApiDocument.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ private static void WriteHostInfoV2(IOpenApiWriter writer, IList<OpenApiServer>
308308
var serverUrl = ParseServerUrl(servers.First());
309309

310310
// Divide the URL in the Url property into host and basePath required in OpenAPI V2
311-
// The Url property cannotcontain path templating to be valid for V2 serialization.
311+
// The Url property cannot contain path templating to be valid for V2 serialization.
312312
var firstServerUrl = new Uri(serverUrl, UriKind.RelativeOrAbsolute);
313313

314314
// host

src/Microsoft.OpenApi/Services/OpenApiVisitorBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public virtual void Enter(string segment)
3131
}
3232

3333
/// <summary>
34-
/// Exit from path context elevel. Enter and Exit calls should be matched.
34+
/// Exit from path context level. Enter and Exit calls should be matched.
3535
/// </summary>
3636
public virtual void Exit()
3737
{

src/Microsoft.OpenApi/Services/OpenApiWalker.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -896,7 +896,7 @@ internal void Walk(IList<OpenApiSchema> schemas)
896896
return;
897897
}
898898

899-
// Visit Schemass
899+
// Visit Schemas
900900
if (schemas != null)
901901
{
902902
for (int i = 0; i < schemas.Count; i++)

src/Microsoft.OpenApi/Services/OpenApiWorkspace.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public void AddFragment(string location, IOpenApiReferenceable fragment)
101101
}
102102

103103
/// <summary>
104-
/// Add a stream based artificat to the workspace. Useful for images, examples, alternative schemas.
104+
/// Add a stream based artifact to the workspace. Useful for images, examples, alternative schemas.
105105
/// </summary>
106106
/// <param name="location"></param>
107107
/// <param name="artifact"></param>

0 commit comments

Comments
 (0)