Created
June 10, 2020 12:37
-
-
Save yodiz/13413cacb41b1a6760e4c7e7301aabd9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Rec = { A : int; B : string } | |
let customServiceSchema : JsonSchemaType<Rec> = | |
recordSchema<Rec> "My Record" "" | |
[| | |
qouteField "id" "" SchemaJSON.int32 <@ fun x -> x.A @> | |
qouteField "status" "" SchemaJSON.string <@ fun x -> x.B @> | |
|] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment