Skip to content

Commit a42e62a

Browse files
committed
Fixes based on PR reviews
1 parent 048518a commit a42e62a

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

src/Microsoft.OpenApi.Readers/OpenApiStreamReader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public class OpenApiStreamReader : IOpenApiReader<Stream, OpenApiDiagnostic>
2121
private OpenApiReaderSettings _settings;
2222

2323
/// <summary>
24-
///
24+
/// Create stream reader with custom settings if desired.
2525
/// </summary>
2626
/// <param name="settings"></param>
2727
public OpenApiStreamReader(OpenApiReaderSettings settings = null)

src/Microsoft.OpenApi/Any/OpenApiObject.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public class OpenApiObject : Dictionary<string, IOpenApiAny>, IOpenApiAny
1717
public AnyType AnyType { get; } = AnyType.Object;
1818

1919
/// <summary>
20-
///
20+
/// Serialize OpenApiObject to writer
2121
/// </summary>
2222
/// <param name="writer"></param>
2323
public void Write(IOpenApiWriter writer)

src/Microsoft.OpenApi/Validations/OpenApiValidator.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ namespace Microsoft.OpenApi.Validations
1515
/// </summary>
1616
public class OpenApiValidator : OpenApiVisitorBase, IValidationContext
1717
{
18-
19-
private ValidationRuleSet _ruleSet;
18+
private readonly ValidationRuleSet _ruleSet;
19+
private readonly IList<ValidationError> _errors = new List<ValidationError>();
2020

2121
/// <summary>
2222
/// Create a vistor that will validate an OpenAPIDocument
@@ -26,9 +26,6 @@ public OpenApiValidator(ValidationRuleSet ruleSet = null)
2626
{
2727
_ruleSet = ruleSet ?? ValidationRuleSet.DefaultRuleSet;
2828
}
29-
30-
private readonly IList<ValidationError> _errors = new List<ValidationError>();
31-
3229

3330
/// <summary>
3431
/// Gets the validation errors.

0 commit comments

Comments
 (0)