< Summary

Information
Class: ArturRios.Util.Http.JsonDefaults
Assembly: ArturRios.Util
File(s): /home/runner/work/dotnet-util/dotnet-util/src/Http/JsonDefaults.cs
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 22
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage
100%
Covered methods: 1
Fully covered methods: 1
Total methods: 1
Method coverage: 100%
Full method coverage: 100%

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.cctor()100%11100%

File(s)

/home/runner/work/dotnet-util/dotnet-util/src/Http/JsonDefaults.cs

#LineLine coverage
 1using System.Text.Json;
 2
 3namespace ArturRios.Util.Http;
 4
 5/// <summary>
 6/// The <see cref="JsonSerializerOptions"/> shared by everything in this namespace.
 7/// </summary>
 8/// <remarks>
 9/// Property matching is case insensitive so that a server answering in camelCase binds to PascalCase
 10/// members without per-call configuration, which is also how Newtonsoft.Json behaved before this library
 11/// moved to <see cref="System.Text.Json"/>. Serialization keeps member names exactly as declared.
 12/// </remarks>
 13internal static class JsonDefaults
 14{
 15    /// <summary>
 16    /// Options used by <see cref="HttpExtensions"/> and <see cref="HttpOutput{TBody}"/>.
 17    /// </summary>
 118    internal static readonly JsonSerializerOptions Options = new()
 119    {
 120        PropertyNameCaseInsensitive = true
 121    };
 22}

Methods/Properties

.cctor()