Make the generated schema be more consistent with the serializer behaviour#21
Merged
panesofglass merged 28 commits intofsprojects:masterfrom Mar 16, 2025
Merged
Make the generated schema be more consistent with the serializer behaviour#21panesofglass merged 28 commits intofsprojects:masterfrom
panesofglass merged 28 commits intofsprojects:masterfrom
Conversation
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
Update fsharp.systemtextjson
[B1PC-4]
Refactor the serializer options to be more DRY Modify and fix tests [B1PC-4]
so that they can be validated and roundtripped correctly. [B1PC-4]
…eprecated [B1PC-4]
…t resolver to the Generator.Generate method Do not process reference schemas, to avoid infinite recursion Avoid double dictionary lookups by returning a tuple [B1PC-4]
…aProcessor [B1PC-4]
The generator will use the existent cache in the passed resolver [B1PC-4]
Set Version before build Use net8.0 in build.sh
Support value option
panesofglass
approved these changes
Mar 16, 2025
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes Question: How does one generate the JsonSchema "required" field #9
Got it to work for records, but not for unions, yet.