FSharp.Data.JsonSchema
FSharp.Data.JsonSchema copied to clipboard
This adds a simple example that demonstrates how to use the package.
Use net6.0 since net5.0 is not supported Use fluid version of JsonConverterOptions Allow SkippableOptionFields, since the lack of it was causing tests to fail
```fsharp type TestRecord = { Example: Choice } ``` This generates the following crazy schema: ```json { "$schema": "http://json-schema.org/draft-04/schema#", "title": "TestRecord", "type": "object", "additionalProperties": false, "properties": { "example": { "$ref":...
- Make (Non optional/nullable/skippable) record fields be required. Fixes https://github.com/panesofglass/FSharp.Data.JsonSchema/issues/9 - Do not unwrap single case unions: This allows them to roundtrip serialization and validation. - Use NJsonSchema setting to...
Hello, I have a recursive DU as part of my model: ```F# type Node = | Leaf of int | Node of Node * Node ``` Currently the Schema Generator...
Hello F# beginner here.. I was playing with generating a Json Schema from a simple record type. To my understand all record properties are required, but this isn't reflected in...