Describe the bug.
The AWS SNS topics and queues can be (first in first out) FIFO. To define such their name must end with .fifo (example user-created.fifo)
Content:
# asyncapi.yaml
asyncapi: 2.0.0
info:
title: Service
version: 1.0.0
channels:
'{ENV}-user-created.fifo':
publish:
message:
$ref: '#/components/messages/UserCreated'
components:
messages:
UserCreated:
$ref: 'UserCreated.yaml'
# UserCreated.yaml
payload:
type: object
properties:
eventName:
type: string
description: The name of the event.
Execute:
asyncapi bundle asyncapi.yaml -x -o output.yaml
Then Execute:
asyncapi optimize output.yaml --optimization=reuse-components -o=overwrite --no-tty
The result is invalid Async API document:
asyncapi: 2.0.0
info:
title: Remittance
version: 1.0.0
channels:
'{ENV}-user-created.fifo':
publish:
message:
payload:
type: object
properties:
eventName:
type: string
description: The name of the event.
x-origin: UserCreated.yaml
'{ENV}-user-created':
fifo:
publish:
message:
$ref: '#/components/messages/UserCreated'
components:
messages:
UserCreated:
payload:
type: object
properties:
eventName:
type: string
description: The name of the event.
x-origin: UserCreated.yaml
Expected behavior
👀 Have you checked for similar open issues?
🏢 Have you read the Contributing Guidelines?
Are you willing to work on this issue ?
None
Describe the bug.
The AWS SNS topics and queues can be (first in first out) FIFO. To define such their name must end with .fifo (example
user-created.fifo)Content:
Execute:
Then Execute:
The result is invalid Async API document:
Expected behavior
👀 Have you checked for similar open issues?
🏢 Have you read the Contributing Guidelines?
Are you willing to work on this issue ?
None