Skip to content

Conversation

@DanielStout5
Copy link

@DanielStout5 DanielStout5 commented Oct 7, 2023

I have a model where when serialized to JSON some properties should be ignored, but they should still be included in the JSON schema - I didn't see a way to do that in the library as-is. I put this version on NuGet here:
https://www.nuget.org/packages/NJsonSchema.NewtonsoftJson-Ignore/11.0.0

@RicoSuter
Copy link
Owner

Can't you provide custom serializer options which exclude the property when serializing and include the property when generating the schema (ie two different options)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants