Support DateTimeOffset in JSON generators (#179)

This commit is contained in:
Patrick Stevens
2024-07-01 18:08:09 +01:00
committed by GitHub
parent 434c042510
commit 398cd04a2a
6 changed files with 140 additions and 0 deletions

View File

@@ -49,6 +49,7 @@ type JsonRecordTypeWithBoth =
IntMeasureOption : int<measure> option
IntMeasureNullable : int<measure> Nullable
Enum : SomeEnum
Timestamp : DateTimeOffset
}
[<WoofWare.Myriad.Plugins.JsonSerialize true>]
@@ -67,6 +68,7 @@ type HeaderAndValue =
}
[<WoofWare.Myriad.Plugins.JsonSerialize true>]
[<WoofWare.Myriad.Plugins.JsonParse true>]
type Foo =
{
Message : HeaderAndValue option