Skip to content

V3 serialization throws if AMQP operation binding has Expiration null #16

Description

@saithis

Describe the bug

If I create a AMQPOperationBinding and set Expiration to null, then serialization throws. The problem is in this line:

writer.WriteOptionalProperty<int>("expiration", (int)this.Expiration);

Expected behavior

It should not throw and just omit the property if it is null.

Or is it required for spec compliancy? If so then it should probably not be nullable and maybe even be a required property I guess

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions