Describe the bug.
I tried to run the optimizer on this file:
asyncapi: 3.0.0
info:
title: Account Service
version: "1.0"
channels:
userSignedUp:
address: user/signedup
messages:
UserSignedUp:
$ref: '#/components/messages/UserSignedUp'
components:
messages:
UserSignedUp:
payload:
type: object
properties:
email:
type: string
It generated the following invalid document.
asyncapi: 3.0.0
info:
title: Account Service
version: '1.0'
channels:
userSignedUp:
$ref: '#/components/channels/userSignedUp'
components:
messages:
UserSignedUp:
payload:
type: object
properties:
email:
type: string
schemas: {}
channels:
userSignedUp:
address: user/signedup
messages:
UserSignedUp:
$ref: '#/components/messages/UserSignedUp'
payload:
properties:
email:
$ref: '#/components/schemas/email'
Expected behavior
It should have generated:
asyncapi: 3.0.0
info:
title: Account Service
version: "1.0"
channels:
userSignedUp:
address: user/signedup
messages:
UserSignedUp:
$ref: '#/components/messages/UserSignedUp'
components:
schemas:
email:
type: string
messages:
UserSignedUp:
payload:
type: object
properties:
email: "$ref: #/components/schemas/email"
Screenshots
...
How to Reproduce
Run the optimiser on the given AsyncAPI file.
🥦 Browser
None
👀 Have you checked for similar open issues?
🏢 Have you read the Contributing Guidelines?
Are you willing to work on this issue ?
No, someone else can work on it
Describe the bug.
I tried to run the optimizer on this file:
It generated the following invalid document.
Expected behavior
It should have generated:
Screenshots
...
How to Reproduce
Run the optimiser on the given AsyncAPI file.
🥦 Browser
None
👀 Have you checked for similar open issues?
🏢 Have you read the Contributing Guidelines?
Are you willing to work on this issue ?
No, someone else can work on it