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
I've run into a case where a loaded schema is being output with invalid $ref elements that point to themselves through a layer of indirection of another $ref when output with the JSchemaWriterReferenceHandling.Always setting.
I've simplified the case down the minimum I've been able to reproduce, but we have a lot of schemas and this is hitting on many of them after updating from a fairly old combination of Newtonsoft.Json (3.0.2) and Newtonsoft.Json.Schema (10.0.3) to the current released versions.
The text was updated successfully, but these errors were encountered:
We have the same issue. In our case we want a schema without any $refs because we don't use recursion. We use JSchemaWriterSettings.Never but still get a reference that points to the element it's in. This seems to be the same problem as above.
The bug occurs in version 3.0.14 and 3.0.15 but not in 3.0.13. So as a workaround we will stay on that old version for now.
I've run into a case where a loaded schema is being output with invalid $ref elements that point to themselves through a layer of indirection of another $ref when output with the
JSchemaWriterReferenceHandling.Always
setting.Broken.json
With External Reference External.json:
Given this, the output with JSchemaWriterReferenceHandling.Always is:
I've simplified the case down the minimum I've been able to reproduce, but we have a lot of schemas and this is hitting on many of them after updating from a fairly old combination of Newtonsoft.Json (3.0.2) and Newtonsoft.Json.Schema (10.0.3) to the current released versions.
The text was updated successfully, but these errors were encountered: