Skip to content

Commit

Permalink
Incread Json MaxDepth to 128
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Mols committed Nov 24, 2023
1 parent 63ee615 commit b27b71b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/NJsonSchema/Infrastructure/JsonSchemaSerialization.cs
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,8 @@ private static void UpdateCurrentSerializerSettings<T>(IContractResolver contrac
MetadataPropertyHandling = MetadataPropertyHandling.Ignore,
ConstructorHandling = ConstructorHandling.Default,
ReferenceLoopHandling = ReferenceLoopHandling.Serialize,
PreserveReferencesHandling = PreserveReferencesHandling.None
PreserveReferencesHandling = PreserveReferencesHandling.None,
MaxDepth = 128
};
}
}
Expand Down

0 comments on commit b27b71b

Please sign in to comment.