You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -516,6 +517,7 @@ Field Name | Type | Description
516
517
<a name="channelItemObjectSubscribe"></a>subscribe | [Operation Object](#operationObject) | A definition of the SUBSCRIBE operation.
517
518
<a name="channelItemObjectPublish"></a>publish | [Operation Object](#operationObject) | A definition of the PUBLISH operation.
518
519
<a name="channelItemObjectParameters"></a>parameters | [[Parameter Object](#parameterObject) | [Reference Object](#referenceObject)] | A list of the parameters included in the channel name. It SHOULD be present only when using channels with expressions (as defined by [RFC 6570 section 2.2](https://tools.ietf.org/html/rfc6570#section-2.2)).
520
+
<a name="channelItemObjectProtocolInfo"></a>protocolInfo | Map[`string`, [Protocol Info Object](#protocolInfoObject)] | A free-form map where the keys describe the name of the protocol and the values describe protocol-specific definitions for the channel.
519
521
520
522
This object can be extended with [Specification Extensions](#specificationExtensions).
521
523
@@ -539,6 +541,12 @@ This object can be extended with [Specification Extensions](#specificationExtens
539
541
}
540
542
}
541
543
}
544
+
},
545
+
"amqp-0-9-1": {
546
+
"channelIsQueue": true,
547
+
"queue": {
548
+
"exclusive": true
549
+
}
542
550
}
543
551
}
544
552
```
@@ -554,7 +562,10 @@ subscribe:
554
562
user:
555
563
$ref: "#/components/schemas/user"
556
564
signup:
557
-
$ref: "#/components/schemas/signup"
565
+
amqp-0-9-1:
566
+
channelIsQueue: true
567
+
queue:
568
+
exclusive: true
558
569
```
559
570
560
571
Using `oneOf` to specify multiple messages per operation:
@@ -599,6 +610,7 @@ Field Name | Type | Description
599
610
<a name="operationObjectDescription"></a>description | `string` | A verbose explanation of the operation. [CommonMark syntax](http://spec.commonmark.org/) can be used for rich text representation.
600
611
<a name="operationObjectTags"></a>tags | [[Tag Object](#tagObject)] | A list of tags for API documentation control. Tags can be used for logical grouping of operations.
601
612
<a name="operationObjectExternalDocs"></a>externalDocs | [External Documentation Object](#externalDocumentationObject) | Additional external documentation for this operation.
613
+
<a name="operationObjectProtocolInfo"></a>protocolInfo | Map[`string`, [Protocol Info Object](#protocolInfoObject)] | A free-form map where the keys describe the name of the protocol and the values describe protocol-specific definitions for the operation.
602
614
<a name="operationObjectMessage"></a>message | [Message Object](#messageObject) | A definition of the message that will be published or received on this channel. `oneOf` is allowed here to specify multiple messages, however, **a message MUST be valid only against one of the referenced message objects.**
603
615
604
616
This object can be extended with [Specification Extensions](#specificationExtensions).
@@ -633,6 +645,9 @@ This object can be extended with [Specification Extensions](#specificationExtens
633
645
}
634
646
}
635
647
}
648
+
},
649
+
"amqp-0-9-1": {
650
+
"noAck": true
636
651
}
637
652
}
638
653
```
@@ -657,6 +672,8 @@ message:
657
672
$ref: "#/components/schemas/userCreate"
658
673
signup:
659
674
$ref: "#/components/schemas/signup"
675
+
amqp-0-9-1:
676
+
noAck: true
660
677
```
661
678
662
679
@@ -713,6 +730,42 @@ user.{userId}.signup:
713
730
714
731
715
732
733
+
#### <a name="protocolInfoObject"></a>Protocol Info Object
734
+
735
+
Free-form key-value object describing protocol-specific definitions for channels, operations, and messages.
736
+
737
+
##### Patterned Fields
738
+
739
+
Field Pattern | Type | Description
740
+
---|:---:|---
741
+
<a name="protocolInfoObjectProtocolName"></a>{protocol} | `Map` | Protocol-specific information. This map is free-form and MUST not be validated by parsers.
742
+
743
+
##### Protocol Info Object Example
744
+
745
+
```json
746
+
{
747
+
"amqp-0-9-1": {
748
+
"channelIsQueue": true,
749
+
"queue": {
750
+
"randomName": true,
751
+
"exclusive": true
752
+
}
753
+
}
754
+
}
755
+
```
756
+
757
+
```yaml
758
+
amqp-0-9-1:
759
+
channelIsQueue: true
760
+
queue:
761
+
randomName: true
762
+
exclusive: true
763
+
```
764
+
765
+
766
+
767
+
768
+
716
769
#### <a name="streamObject"></a>Stream Object
717
770
718
771
Holds the framing configuration and the read/write operations for the streaming API.
@@ -817,6 +870,7 @@ Field Name | Type | Description
817
870
<a name="messageObjectDescription"></a>description | `string` | A verbose explanation of the message. [CommonMark syntax](http://spec.commonmark.org/) can be used for rich text representation.
818
871
<a name="messageObjectTags"></a>tags | [[Tag Object](#tagObject)] | A list of tags for API documentation control. Tags can be used for logical grouping of messages.
819
872
<a name="messageObjectExternalDocs"></a>externalDocs | [External Documentation Object](#externalDocumentationObject) | Additional external documentation for this message.
873
+
<a name="messageObjectProtocolInfo"></a>protocolInfo | Map[`string`, [Protocol Info Object](#protocolInfoObject)] | A free-form map where the keys describe the name of the protocol and the values describe protocol-specific definitions for the message.
820
874
<a name="messageObjectExamples"></a>examples | [Map[`string`, `any`]] | An array with examples of valid message objects.
821
875
822
876
This object can be extended with [Specification Extensions](#specificationExtensions).
@@ -859,6 +913,11 @@ This object can be extended with [Specification Extensions](#specificationExtens
859
913
"correlationId": {
860
914
"description": "Default Correlation ID",
861
915
"location": "$message.header#/correlationId"
916
+
},
917
+
"amqp-0-9-1": {
918
+
"properties": {
919
+
"delivery_mode": 2
920
+
}
862
921
}
863
922
}
864
923
```
@@ -890,6 +949,9 @@ payload:
890
949
correlationId:
891
950
description: Default Correlation ID
892
951
location: $message.header#/correlationId
952
+
amqp-0-9-1:
953
+
properties:
954
+
delivery_mode: 2
893
955
```
894
956
895
957
Example using Google's protobuf to define the payload:
0 commit comments