mirror of
https://github.com/Smaug123/WoofWare.Myriad
synced 2025-10-05 20:18:43 +00:00
31 lines
635 B
Forth
31 lines
635 B
Forth
namespace ConsumePlugin
|
|
|
|
open System.Text.Json.Serialization
|
|
|
|
module Literals =
|
|
[<Literal>]
|
|
let something = "something"
|
|
|
|
[<WoofWare.Myriad.Plugins.JsonParse>]
|
|
type InnerType =
|
|
{
|
|
[<JsonPropertyName(Literals.something)>]
|
|
Thing : string
|
|
}
|
|
|
|
/// My whatnot
|
|
[<WoofWare.Myriad.Plugins.JsonParse>]
|
|
type JsonRecordType =
|
|
{
|
|
/// A thing!
|
|
A : int
|
|
/// Another thing!
|
|
[<JsonPropertyName "another-thing">]
|
|
B : string
|
|
[<System.Text.Json.Serialization.JsonPropertyName "hi">]
|
|
C : int list
|
|
D : InnerType
|
|
E : string array
|
|
F : int[]
|
|
}
|