mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 21:10:32 +01:00
[PR #668] [CLOSED] Support Schema Example and Support AllOf in definitions #1024
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?
📋 Pull Request Information
Original PR: https://github.com/wiremock/WireMock.Net/pull/668
Author: @leolplex
Created: 10/27/2021
Status: ❌ Closed
Base:
master← Head:SupportSchemaExample📝 Commits (6)
f0ce73fSupport an Example within a Schemaeaf4ad1Support AllOf in definitions749d9f0Refactor MapSchemaAllOfToObject method and add test files49029faInclude schema examples5aa4b3aRefactor duplicate code, create method MapPropertyAsJObject69155dcRemove commented code📊 Changes
5 files changed (+2385 additions, -19 deletions)
View changed files
➕
examples/WireMock.Net.OpenApiParser.ConsoleApp/OpenApiFiles/Swagger_Petstore_V2.0.json(+269 -0)➕
examples/WireMock.Net.OpenApiParser.ConsoleApp/OpenApiFiles/Swagger_Petstore_V2.0.yaml(+732 -0)➕
examples/WireMock.Net.OpenApiParser.ConsoleApp/OpenApiFiles/Swagger_Petstore_V3.0.0.yaml(+109 -0)➕
examples/WireMock.Net.OpenApiParser.ConsoleApp/OpenApiFiles/Swagger_Petstore_V3.0.2.json(+1232 -0)📝
src/WireMock.Net.OpenApiParser/Mappers/OpenApiPathsMapper.cs(+43 -19)📄 Description
Hello @StefH,
In this opportunity I've noticed that in Swagger V 2.0 when I have an example in the schema Wiremock.net does not supports this kind of examples so I added it.
On the other hand I also noticed that when a schema has
AllOfin the definitions Wiremock.net does not supports it so I added it.I added the test swagger files in the last path.
Thanks.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.