You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That's kind of the neat thing about this library: it'll generate data you don't expect if your schema isn't specific enough. The idea is that it'll generate chaos until you've added enough constraints to perfectly describe only the data you want.
Just add additionalProperties: false to your schema.
Nuget Package
JsonSchema.Net.DataGeneration
Package Version
1.1.0
What's your question?
I have a schema
And I have the following code
The resulting json data generated is
I just want to have the properties "model" and "target" without additional randomly generated properties. Can I do that?
Is there any other information you'd like to share regarding this bug?
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: