mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 18:21:10 +00:00
Adds Presentation Api layer integration tests for file system browser dialog
This commit is contained in:
1 parent
2550bf8a3f
commit
b94c299180
20 files changed
+2414
-24
No files matched your search
@@ -37,6 +37,8 @@ public static class PresentationApiLayerServices
|
||||
// add services to the container
|
||||
services.AddControllers().AddJsonOptions(options =>
|
||||
{
|
||||
options.JsonSerializerOptions.MaxDepth = 256;
|
||||
options.JsonSerializerOptions.ReferenceHandler = ReferenceHandler.IgnoreCycles; // needed because file system API responses can have very nested structures
|
||||
options.JsonSerializerOptions.Converters.Add(new JsonStringEnumConverter());
|
||||
options.JsonSerializerOptions.Converters.Add(new OptionalJsonConverterFactory());
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user