mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 21:10:32 +01:00
[PR #663] [CLOSED] Open api examples support array #1020
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/663
Author: @leolplex
Created: 10/21/2021
Status: ❌ Closed
Base:
master← Head:OpenAPI_Examples_Support_Array📝 Commits (10+)
0b8537bSupport edge case: first object, next an array.edf15bfAdd mapping to header parameters.0296d76Merge branch 'WireMock-Net:master' into master355c3e7Refactor the method MapHeadersParameters to MapHeaders3a1b80fMerge branch 'WireMock-Net:master' into master75b8eeaRefactor method name 'cause is duplicate, only pass httpStatusCode when failafc5951Merge branch 'WireMock-Net:master' into master83bce01Commit question, how to use 'NotNullOrEmptyMatcher' in Request Headera5c5437Merge branch 'WireMock-Net:master' into masterd9e1dc2Update OpenApiPathsMapper.cs📊 Changes
2 files changed (+104 additions, -1 deletions)
View changed files
➕
examples/WireMock.Net.OpenApiParser.ConsoleApp/OpenApiFiles/open_api_examples_v3.yaml(+96 -0)📝
src/WireMock.Net.OpenApiParser/Mappers/OpenApiPathsMapper.cs(+8 -1)📄 Description
Hello @StefH ,
When the openapi file had an example with array wiremock.net shown this message "Error reading JObject from JsonReader. Current JsonReader item is not an object"
I introduce this change in order to support an Array in the examples.
By the way, thankss a looot for deploy to Nuget the last version it was really useful for me.
I applies your suggestions.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.