mirror of
https://github.com/spacebarchat/server.git
synced 2026-08-15 15:20:58 +00:00
Serialize null properties
This commit is contained in:
@@ -17,7 +17,7 @@ builder.Services.AddControllers(options => {
|
||||
options.MaxValidationDepth = null;
|
||||
// options.MaxIAsyncEnumerableBufferLimit = 1;
|
||||
}).AddJsonOptions(options => {
|
||||
options.JsonSerializerOptions.DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull;
|
||||
options.JsonSerializerOptions.DefaultIgnoreCondition = JsonIgnoreCondition.Never;
|
||||
options.JsonSerializerOptions.WriteIndented = true;
|
||||
options.JsonSerializerOptions.MaxDepth = 100;
|
||||
// options.JsonSerializerOptions.DefaultBufferSize = ;
|
||||
|
||||
Reference in New Issue
Block a user