Skip to content

Commit

Permalink
Added JsonConverter attribute to allow enum value to be passed as string
Browse files Browse the repository at this point in the history
  • Loading branch information
gbubemismith committed Dec 27, 2024
1 parent 8868b3c commit 72b121d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Core/Vault/Models/Api/SecurityTaskCreateRequest.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
using Bit.Core.Vault.Enums;
using System.Text.Json.Serialization;
using Bit.Core.Vault.Enums;

namespace Bit.Core.Vault.Models.Api;

public class SecurityTaskCreateRequest
{
[JsonConverter(typeof(JsonStringEnumConverter))]
public SecurityTaskType Type { get; set; }
public Guid CipherId { get; set; }
}

0 comments on commit 72b121d

Please sign in to comment.