From 49dcbda64765e1ecb012bdb5f39e05fef1fd2b14 Mon Sep 17 00:00:00 2001 From: Stef Heyenrath Date: Wed, 1 Jul 2026 22:44:34 +0200 Subject: [PATCH] Upgrade Microsoft.OpenApi to 3.7.0 and YamlDotNet to 18.1.0 (#1479) * Upgrade Microsoft.OpenApi to 3.7.0 and YamlDotNet to 18.1.0 * fix --- .../WireMock.Net.OpenApiParser.ConsoleApp.csproj | 7 ++----- .../Mappers/OpenApiPathsMapper.cs | 2 +- .../WireMock.Net.OpenApiParser.csproj | 12 ++++++------ 3 files changed, 9 insertions(+), 12 deletions(-) diff --git a/examples/WireMock.Net.OpenApiParser.ConsoleApp/WireMock.Net.OpenApiParser.ConsoleApp.csproj b/examples/WireMock.Net.OpenApiParser.ConsoleApp/WireMock.Net.OpenApiParser.ConsoleApp.csproj index 0b3e22bb..d2651422 100644 --- a/examples/WireMock.Net.OpenApiParser.ConsoleApp/WireMock.Net.OpenApiParser.ConsoleApp.csproj +++ b/examples/WireMock.Net.OpenApiParser.ConsoleApp/WireMock.Net.OpenApiParser.ConsoleApp.csproj @@ -6,7 +6,7 @@ - + @@ -14,10 +14,7 @@ - - + diff --git a/src/WireMock.Net.OpenApiParser/Mappers/OpenApiPathsMapper.cs b/src/WireMock.Net.OpenApiParser/Mappers/OpenApiPathsMapper.cs index 5fac5ac0..088d1fd8 100644 --- a/src/WireMock.Net.OpenApiParser/Mappers/OpenApiPathsMapper.cs +++ b/src/WireMock.Net.OpenApiParser/Mappers/OpenApiPathsMapper.cs @@ -159,7 +159,7 @@ internal class OpenApiPathsMapper(WireMockOpenApiParserSettings settings) }; } - private static bool TryGetContent(IDictionary? contents, [NotNullWhen(true)] out OpenApiMediaType? openApiMediaType, [NotNullWhen(true)] out string? contentType) + private static bool TryGetContent(IDictionary? contents, [NotNullWhen(true)] out IOpenApiMediaType? openApiMediaType, [NotNullWhen(true)] out string? contentType) { openApiMediaType = null; contentType = null; diff --git a/src/WireMock.Net.OpenApiParser/WireMock.Net.OpenApiParser.csproj b/src/WireMock.Net.OpenApiParser/WireMock.Net.OpenApiParser.csproj index 78041de0..a7a22eb9 100644 --- a/src/WireMock.Net.OpenApiParser/WireMock.Net.OpenApiParser.csproj +++ b/src/WireMock.Net.OpenApiParser/WireMock.Net.OpenApiParser.csproj @@ -40,21 +40,21 @@ - - + + - + - - - + + +