mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 14:20:29 +01:00
WithMappingFromOpenApiFile - Support for OpenAPI 3.1.0 #684
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tj-spyro on GitHub (Apr 14, 2025).
Originally assigned to: @StefH on GitHub.
Is your feature request related to a problem? Please describe.
Support for using
WireMock.Net.OpenApiParserwith an OpenAPI 3.1.0 yaml file. Currently, if you attempt to load an OAS file for v3.1.0 you get the following error:Describe the solution you'd like
Support for version 3.1.0 of OpenAPI has been introduced into version 2.x of the
Microsoft.OpenApi.*nuget packages, still in preview. TheMicrosoft.OpenApi.Readersproject has been renamed toMicrosoft.OpenApi.YamlReader, see https://github.com/microsoft/OpenAPI.NET/pull/2166.Upgrading the package may have breaking changes, I've yet to check. It's also still in preview, would WireMock publish a package that contained a preview dependency or wait for a stable version?
Describe alternatives you've considered
Other solutions would be more time-consuming than being able to take a provider's 3.1.0 OpenAPI Spec and passing it into WireMock.
Is your feature request supported by WireMock (java version)? Please provide details.
n/a
Additional context
n/a
@StefH commented on GitHub (Apr 14, 2025):
@tj-spyro
I just started upgrading to the new Microsoft.OpenApi in another project, and there are indeed some breaking changes.
I'll take a look for WireMock...
@StefH commented on GitHub (Apr 15, 2025):
https://github.com/StefH/RamlToOpenApiConverter/pull/22
@StefH commented on GitHub (Apr 17, 2025):
https://github.com/WireMock-Net/WireMock.Net/pull/1279
@StefH commented on GitHub (May 2, 2025):
https://github.com/WireMock-Net/WireMock.Net/pull/1290