Skip to content

Instantly share code, notes, and snippets.

View freerangeeggs's full-sized avatar
🐕
I have no idea what I'm doing

Brett McKenzie freerangeeggs

🐕
I have no idea what I'm doing
View GitHub Profile
#r "nuget: FSharp.Json"
open FSharp.Json
[<JsonUnion(Mode = UnionMode.CaseKeyDiscriminatorField, CaseKeyField="version")>]
type VersionedDto =
| V0 of DtoV0
| V1 of DtoV1
and DtoV0 = {
Prop1: string