Skip to content

Commit

Permalink
fix: increase json max depth for contentful content
Browse files Browse the repository at this point in the history
  • Loading branch information
katie-gardner committed Jan 15, 2025
1 parent 0f22be0 commit 5fd2070
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/Dfe.PlanTech.Infrastructure.Redis/JsonSerialiser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ public static class JsonSerialiser
new DefaultJsonTypeInfoResolver().WithAddedModifier(ContentComponentJsonExtensions.AddContentComponentPolymorphicInfo<IContentComponent>)
.WithAddedModifier(ContentComponentJsonExtensions.AddContentComponentPolymorphicInfo<ContentComponent>)
.WithAddedModifier(ContentComponentJsonExtensions.AddContentComponentPolymorphicInfo<ContentBase>),
ReferenceHandler = ReferenceHandler.Preserve
ReferenceHandler = ReferenceHandler.Preserve,
MaxDepth = 256
};

/// <summary>
Expand Down
3 changes: 2 additions & 1 deletion src/Dfe.PlanTech.Web/appsettings.Staging.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"SiteVerificationId": ""
},
"Contentful": {
"UsePreview": true
"UsePreview": true,
"UsePreviewApi": true
}
}

0 comments on commit 5fd2070

Please sign in to comment.