mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 21:10:32 +01:00
[PR #650] [CLOSED] Add ExactMatcher in headers open API #1014
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/650
Author: @leolplex
Created: 10/12/2021
Status: ❌ Closed
Base:
master← Head:master📝 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📄 Description
Hello,
I did some test over a real OpenAPI file and I want to have the header parameter but with different values not only ExactMatcher I was researching on the Wiki and I found the matcher "NotNullOrEmptyMatcher" but when I tried to call the method WithMappingFromOpenApiFile I 'm getting this error " The collection argument 'matchers' must contain at least one element."
Any idea how can I apply the Matcher "NotNullOrEmptyMatcher" to header parameters?
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.