Skip to content

Commit 71a426f

Browse files
authored
fix: lowercase methods on pact upload (#47)
* fix: lowercase methods on pact upload * chore: bump version to 0.8.2
1 parent b43faea commit 71a426f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/gitversion.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
next-version: 0.8.1
1+
next-version: 0.8.2
22
assembly-versioning-scheme: MajorMinorPatch
33
assembly-file-versioning-scheme: MajorMinorPatchTag
44
assembly-informational-format: '{InformationalVersion}'

Dockerfile.debian

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
FROM debian:12-slim
2-
ARG VERSION=0.8.1
2+
ARG VERSION=0.8.2
33
RUN apt update && apt install -y curl libicu-dev
44

55
RUN if [ "$(uname -m)" = "aarch64" ]; then \

src/Explore.Cli/MappingHelpers/Pact/PactMappingHelper.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public static Dictionary<string, object> CreatePactPathsDictionary(object reques
9090
{
9191
var methodJson = new Dictionary<string, object>
9292
{
93-
{ v4Request.Method?.ToString()?.Replace("Method", string.Empty) ?? string.Empty, pathsContent }
93+
{ v4Request.Method?.ToString()?.Replace("Method", string.Empty).ToLower() ?? string.Empty, pathsContent }
9494
};
9595

9696
var json = new Dictionary<string, object>
@@ -138,7 +138,7 @@ public static Dictionary<string, object> CreatePactPathsDictionary(object reques
138138
{
139139
var methodJson = new Dictionary<string, object>
140140
{
141-
{ v3Request.Method?.ToString()?.Replace("Method", string.Empty) ?? string.Empty, pathsContent }
141+
{ v3Request.Method?.ToString()?.Replace("Method", string.Empty).ToLower() ?? string.Empty, pathsContent }
142142
};
143143

144144
var json = new Dictionary<string, object>
@@ -186,7 +186,7 @@ public static Dictionary<string, object> CreatePactPathsDictionary(object reques
186186
{
187187
var methodJson = new Dictionary<string, object>
188188
{
189-
{ v2Request.Method?.ToString()?.Replace("Method", string.Empty) ?? string.Empty, pathsContent }
189+
{ v2Request.Method?.ToString()?.Replace("Method", string.Empty).ToLower() ?? string.Empty, pathsContent }
190190
};
191191

192192
var json = new Dictionary<string, object>

0 commit comments

Comments
 (0)