Skip to content

Commit

Permalink
Incread Json MaxDepth to 128 (#1649)
Browse files Browse the repository at this point in the history
Co-authored-by: Johannes Mols <johannes.mols@kraftvaerk.com>
  • Loading branch information
johannesmols and Johannes Mols authored Dec 8, 2023
1 parent 85f9911 commit 3585d60
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 3585d60

Please sign in to comment.