asyncapi3-1.0.0.0: test/golden/examples/reference-examples-rpc-server-asyncapi.yml.json
{"asyncapi":"3.1.0","id":"urn:example:rpcserver","info":{"title":"RPC Server Example","version":"1.0.0","description":"This example demonstrates how to define an RPC server."},"servers":{"production":{"host":"rabbitmq.example.org","protocol":"amqp"}},"defaultContentType":"application/json","channels":{"queue":{"address":"{queue}","messages":{"sendSumResult":{"payload":{"type":"object","properties":{"result":{"type":"number","examples":[7]}}},"correlationId":{"location":"$message.header#/correlation_id"}}},"parameters":{"queue":{}},"bindings":{"amqp":{"is":"queue","queue":{"exclusive":true}}}},"rpc_queue":{"address":"rpc_queue","messages":{"sum":{"payload":{"type":"object","properties":{"numbers":{"type":"array","examples":[[4,3]],"items":{"type":"number"}}}},"correlationId":{"location":"$message.header#/correlation_id"}}},"bindings":{"amqp":{"is":"queue","queue":{"durable":false}}}}},"operations":{"sendSumResult":{"action":"send","channel":{"$ref":"#/channels/queue"},"bindings":{"amqp":{"ack":true}},"messages":[{"$ref":"#/channels/queue/messages/sendSumResult"}]},"sum":{"action":"receive","channel":{"$ref":"#/channels/rpc_queue"},"messages":[{"$ref":"#/channels/rpc_queue/messages/sum"}]}}}