Skip to content

Commit

Permalink
v6.6.21 (#798)
Browse files Browse the repository at this point in the history
* chore(models): add multiple messages api

* test: fix test:watch script

* chore(models): regenerate package-lock.json

* test: add test for multiple messages in operation

* 6.6.21

* test: add a waitUntil
  • Loading branch information
twoplustwoone authored Sep 16, 2022
1 parent a1f7a23 commit 26244f9
Show file tree
Hide file tree
Showing 5 changed files with 666 additions and 574 deletions.
3 changes: 2 additions & 1 deletion demo/apis.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,6 @@
"models/visual-tests-raml/visual-tests-raml.raml": "RAML 1.0",
"models/representative-service/representative-service.yaml": "OAS 3.0",
"models/APIC-763/APIC-763.raml": "RAML 1.0",
"models/multipart-api/multipart-api.raml": "RAML 1.0"
"models/multipart-api/multipart-api.raml": "RAML 1.0",
"models/multiple-messages/multiple-messages.yaml": "ASYNC 2.0"
}
51 changes: 51 additions & 0 deletions demo/models/multiple-messages/multiple-messages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
asyncapi: '2.0.0'
info:
title: exp-shipping-sftp-async
description: This api processes Shipping Notification messages and converts them to a CDM.
version: '1.0.0'

channels:
shipping-messages:
description: Converted Shipping Notification messages are published on this channel.
publish:
description: Converted Shipping Notification messages can be subscribed to via this channel.
message:
oneOf:
- $ref: '#/components/messages/ASN'
- $ref: '#/components/messages/GRN'

components:

messages:
ASN:
contentType: application/json
headers:
type: object
description: Message header
properties:
messageId:
description: Message ID field
type: string
payload:
type: object
description: Message payload
properties:
data1:
description: Data 1 field
type: string
GRN:
contentType: application/json
headers:
type: object
description: Message header
properties:
messageId:
description: Message ID field
type: string
payload:
type: object
description: Message payload
properties:
data2:
description: Data 2 field
type: string
Loading

0 comments on commit 26244f9

Please sign in to comment.