Skip to content

Commit

Permalink
Disable "Convert into const" inspection
Browse files Browse the repository at this point in the history
  • Loading branch information
drakon64 committed Dec 24, 2024
1 parent 7850bf8 commit 5a3dc13
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ namespace Ktisis.Common.Models.GoogleCloud.Tasks;
public class CloudTaskHttpRequest
{
public required string Url { get; init; }

// `const` doesn't work well with (de)serialization
// ReSharper disable once ConvertToConstant.Global
public readonly string HttpMethod = "POST";

public readonly ReadOnlyDictionary<string, string> Headers = new Dictionary<string, string>
{
{ "Content-Type", "application/json" },
Expand Down

0 comments on commit 5a3dc13

Please sign in to comment.