Skip to content

Commit 74a9f08

Browse files
committed
fix: removes redundant marker interface
1 parent bf8d0b6 commit 74a9f08

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
@@ -97,7 +97,6 @@ namespace Microsoft.OpenApi
9797
public override string Expression { get; }
9898
public string? Token { get; }
9999
}
100-
public interface IDiagnostic { }
101100
public interface IMetadataContainer
102101
{
103102
System.Collections.Generic.IDictionary<string, object>? Metadata { get; set; }
@@ -1942,7 +1941,7 @@ namespace Microsoft.OpenApi.Reader
19421941
{
19431942
public static System.Text.Json.Nodes.JsonNode? Find(this Microsoft.OpenApi.JsonPointer currentPointer, System.Text.Json.Nodes.JsonNode baseJsonNode) { }
19441943
}
1945-
public class OpenApiDiagnostic : Microsoft.OpenApi.IDiagnostic
1944+
public class OpenApiDiagnostic
19461945
{
19471946
public OpenApiDiagnostic() { }
19481947
public System.Collections.Generic.IList<Microsoft.OpenApi.OpenApiError> Errors { get; set; }

0 commit comments

Comments
 (0)