Skip to content

Commit

Permalink
Adding max depth
Browse files Browse the repository at this point in the history
  • Loading branch information
ackava committed Feb 9, 2024
1 parent 987809b commit 5b9dec1
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ public EntitySerializationSettings()
Options = new JsonSerializerOptions
{
PropertyNamingPolicy = JsonNamingPolicy.CamelCase,
MaxDepth = 1024,
Converters =
{
this
Expand All @@ -106,6 +107,7 @@ public EntitySerializationSettings(ISecureQueryProvider db)
Options = new JsonSerializerOptions
{
PropertyNamingPolicy = JsonNamingPolicy.CamelCase,
MaxDepth = 1024,
Converters =
{
this
Expand All @@ -122,6 +124,7 @@ public EntitySerializationSettings(DbContext db)
Options = new JsonSerializerOptions
{
PropertyNamingPolicy = JsonNamingPolicy.CamelCase,
MaxDepth = 1024,
Converters =
{
this
Expand Down

0 comments on commit 5b9dec1

Please sign in to comment.