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
Copy file name to clipboardExpand all lines: OpenAi.JsonSchema/Internals/SchemaRefCountVisitor.cs
+8-1Lines changed: 8 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,14 @@ public override void Visit(SchemaRootNode schema)
17
17
publicoverridevoidVisit(SchemaRefNodeschema)
18
18
{
19
19
schema.Ref.Count++;
20
-
if(_seen.Add(schema.Ref.Value)){
20
+
21
+
// System.InvalidOperationException : Operations that change non-concurrent collections must have exclusive access. A concurrent update was performed on this collection and corrupted its state. The collection's state is no longer correct.
0 commit comments