Skip to content

Commit

Permalink
docs: fix incorrect example for AMQP
Browse files Browse the repository at this point in the history
According to the JSON Schema files, you are only allowed to use exchange or queue depending on the `is`: https://github.com/asyncapi/spec-json-schemas/blob/287ed2846a764ac6ffce1d5034a9e3e47853a247/bindings/amqp/0.3.0/channel.json#L84

You cannot have both, which makes the example invalid.
  • Loading branch information
jonaslagoni authored Jan 8, 2024
1 parent 306f1fc commit 7e35b20
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions amqp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,6 @@ channels:
bindings:
amqp:
is: routingKey
queue:
name: my-queue-name
durable: true
exclusive: true
autoDelete: false
vhost: /
exchange:
name: myExchange
type: topic
Expand All @@ -69,6 +63,21 @@ channels:
bindingVersion: 0.3.0
```
```yaml
channels:
userSignup:
address: 'user/signup'
bindings:
amqp:
is: queue
queue:
name: my-queue-name
durable: true
exclusive: true
autoDelete: false
vhost: /
bindingVersion: 0.3.0
```
<a name="operation"></a>
Expand Down

0 comments on commit 7e35b20

Please sign in to comment.