RicoSuter / NJsonSchema

JSON Schema reader, generator and validator for .NET
http://NJsonSchema.org
MIT License
1.38k stars 532 forks source link

SampleJsonSchemaGenerator created an unnecessary\wrong references #1586

Open barnuri opened 1 year ago

barnuri commented 1 year ago

SampleJsonSchemaGenerator created an unnecessary\wrong references make a flag that creating a schema without references Proposal flag name, bool standalone = false

amolkalekar commented 1 year ago

We are also facing same issue... mainly its giving wrong ref to empty objects in JSON. Ref to all empty object is always pointing to first child object.

Thiago-Dantas commented 1 year ago

We are also facing same issue... mainly its giving wrong ref to empty objects in JSON. Ref to all empty object is always pointing to first child object.

just fell into this as well, an empty object with an object points to the top level object making a loop