Skip to content

Commit 5a055f9

Browse files
authored
Merge pull request #2436 from microsoft/fix/redundant-interface
fix: removes redundant marker interface
2 parents ef7ae33 + 74a9f08 commit 5a055f9

File tree

3 files changed

+2
-15
lines changed

3 files changed

+2
-15
lines changed

src/Microsoft.OpenApi/Interfaces/IDiagnostic.cs

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/Microsoft.OpenApi/Reader/OpenApiDiagnostic.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace Microsoft.OpenApi.Reader
88
/// <summary>
99
/// Object containing all diagnostic information related to Open API parsing.
1010
/// </summary>
11-
public class OpenApiDiagnostic : IDiagnostic
11+
public class OpenApiDiagnostic
1212
{
1313
/// <summary>
1414
/// List of all errors.

test/Microsoft.OpenApi.Tests/PublicApi/PublicApi.approved.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ namespace Microsoft.OpenApi
9898
public override string Expression { get; }
9999
public string? Token { get; }
100100
}
101-
public interface IDiagnostic { }
102101
public interface IMetadataContainer
103102
{
104103
System.Collections.Generic.IDictionary<string, object>? Metadata { get; set; }
@@ -1925,7 +1924,7 @@ namespace Microsoft.OpenApi.Reader
19251924
{
19261925
public static System.Text.Json.Nodes.JsonNode? Find(this Microsoft.OpenApi.JsonPointer currentPointer, System.Text.Json.Nodes.JsonNode baseJsonNode) { }
19271926
}
1928-
public class OpenApiDiagnostic : Microsoft.OpenApi.IDiagnostic
1927+
public class OpenApiDiagnostic
19291928
{
19301929
public OpenApiDiagnostic() { }
19311930
public System.Collections.Generic.IList<Microsoft.OpenApi.OpenApiError> Errors { get; set; }

0 commit comments

Comments
 (0)