AsyncAPI: $ref in examples #838
-
Hi This is part of my asyncapi.yml:
I would like to reference the parameters of the examples, just like I reference the general message parameters (header and payload), but it doesn't work in the examples. How should I do it? I have also tried like this, but it doesn't work:
Schemas:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hey @JulianGdev |
Beta Was this translation helpful? Give feedback.
-
Thank you for your answer, but I think that my issue isn't related to that one. Either way, I'd be around for some tests, sure. |
Beta Was this translation helpful? Give feedback.
I had a detailed look at it and I think this construction is not correct from an AsyncAPI schema point of view (not from a JSON point of view).
If you have a look at Operation object definition in the specification, it says
message
property is either Message Object | Reference Object | Map["oneOf", [Message Object | Reference Object]]So you can define a message this way:
that way:
of