Skip to content

Commit 4dfc9b8

Browse files
committed
fix: removes virtual modifier in MediaType
Signed-off-by: Vincent Biret <[email protected]>
1 parent 41759a1 commit 4dfc9b8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Microsoft.OpenApi/Models/OpenApiMediaType.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public class OpenApiMediaType : IOpenApiSerializable, IOpenApiExtensible
2222
/// <summary>
2323
/// The schema defining the type used for the request body.
2424
/// </summary>
25-
public virtual IOpenApiSchema? Schema { get; set; }
25+
public IOpenApiSchema? Schema { get; set; }
2626

2727
/// <summary>
2828
/// Example of the media type.

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -843,7 +843,7 @@ namespace Microsoft.OpenApi.Models
843843
public System.Text.Json.Nodes.JsonNode? Example { get; set; }
844844
public System.Collections.Generic.IDictionary<string, Microsoft.OpenApi.Models.Interfaces.IOpenApiExample>? Examples { get; set; }
845845
public System.Collections.Generic.IDictionary<string, Microsoft.OpenApi.Interfaces.IOpenApiExtension>? Extensions { get; set; }
846-
public virtual Microsoft.OpenApi.Models.Interfaces.IOpenApiSchema? Schema { get; set; }
846+
public Microsoft.OpenApi.Models.Interfaces.IOpenApiSchema? Schema { get; set; }
847847
public void SerializeAsV2(Microsoft.OpenApi.Writers.IOpenApiWriter writer) { }
848848
public void SerializeAsV3(Microsoft.OpenApi.Writers.IOpenApiWriter writer) { }
849849
public void SerializeAsV31(Microsoft.OpenApi.Writers.IOpenApiWriter writer) { }

0 commit comments

Comments
 (0)