From 66483791163fe7de340d6facd04d81a03e5e038c Mon Sep 17 00:00:00 2001 From: Michael May Date: Mon, 3 Jun 2024 13:26:41 +0200 Subject: [PATCH 1/2] fix: DateTime and DateTimeOffset as query parameters with round-trip format --- src/SwaggerProvider.Runtime/RuntimeHelpers.fs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/SwaggerProvider.Runtime/RuntimeHelpers.fs b/src/SwaggerProvider.Runtime/RuntimeHelpers.fs index 07867b8..885ed8c 100644 --- a/src/SwaggerProvider.Runtime/RuntimeHelpers.fs +++ b/src/SwaggerProvider.Runtime/RuntimeHelpers.fs @@ -110,6 +110,8 @@ module RuntimeHelpers = | :? Option as x -> x |> toStrOpt name | :? Option as x -> x |> toStrDateTimeOpt name | :? Option as x -> x |> toStrDateTimeOffsetOpt name + | :? DateTime as x -> [ name, x.ToString("O") ] + | :? DateTimeOffset as x -> [ name, x.ToString("O") ] | :? Option as x -> x |> toStrOpt name | _ -> [ name, (if isNull obj then null else obj.ToString()) ] From 9499677949e3b5e78f4ee958730b5d827df21385 Mon Sep 17 00:00:00 2001 From: Michael May Date: Mon, 3 Jun 2024 13:39:27 +0200 Subject: [PATCH 2/2] updated release notes --- docs/RELEASE_NOTES.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/RELEASE_NOTES.md b/docs/RELEASE_NOTES.md index 7a101cd..69ed8ac 100644 --- a/docs/RELEASE_NOTES.md +++ b/docs/RELEASE_NOTES.md @@ -1,3 +1,7 @@ +#### 2.1.2 - Jun 3, 2024 + + - fix: Support DateTime/DateTimeOffset as required query parameter, using round-trip format (#244) + #### 2.1.1 - Apr 8, 2024 - Minor dependency updates