Skip to content

Commit

Permalink
Merge pull request #84 from gomete/feature/83_enum-serialization
Browse files Browse the repository at this point in the history
The AmqpChannelBindingIs.RoutingKey is ignoring EnumMember.Value in the serialization
  • Loading branch information
m-wild authored Mar 10, 2021
2 parents 3bb1e01 + c53d1a4 commit 6c0c54a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System.Runtime.Serialization;
using System.Text.Json.Serialization;
using Saunter.Utils;

namespace Saunter.AsyncApiSchema.v2.Bindings.Amqp
{
Expand All @@ -9,7 +10,7 @@ namespace Saunter.AsyncApiSchema.v2.Bindings.Amqp
public class AmqpChannelBinding : IChannelBinding
{
[JsonPropertyName("is")]
[JsonConverter(typeof(JsonStringEnumConverter))]
[JsonConverter(typeof(EnumMemberConverter))]
public AmqpChannelBindingIs Is { get; set; }

[JsonPropertyName("exchange")]
Expand Down

0 comments on commit 6c0c54a

Please sign in to comment.