Skip to content
This repository was archived by the owner on Nov 17, 2020. It is now read-only.
This repository was archived by the owner on Nov 17, 2020. It is now read-only.

effective_policy_definition is sometimes an object, sometimes an array #701

@wjdavis5

Description

@wjdavis5

RabbitMQ version
3.7.10
Erlang version
20.3

When calling the API:
/api/queues/VHOST/

The json property for effective_policy_definition
is either a json object if it has a value
or an empty json array if it doesnt have a value:

Empty:
"effective_policy_definition": [],

With value:

"effective_policy_definition": {
            "ha-mode": "exactly",
            "ha-params": 2
        },

This makes serializing the response cumbersome, and the result should be consistent.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions