-
-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Labels
bugSomething isn't workingSomething isn't working
Description
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.yamlExpected behavior
π Have you checked for similar open issues?
- I checked and didn't find similar issue
π’ Have you read the Contributing Guidelines?
- I have read the Contributing Guidelines
Are you willing to work on this issue ?
None
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
Done