In asyncapi you can reference components, like messages from another file or web url. This would for example allow to create separate specification files for a let's say a ChatClient and ChatServer which share the same message types by referencing them from the components file. The operations could be different (send and receive parts). Maybe a separate derive like AsyncApiComponents to create the shared components file from rust code would be useful.
Link to the feature:
https://www.asyncapi.com/docs/concepts/asyncapi-document/reusable-parts#another-local-file
https://www.asyncapi.com/docs/concepts/asyncapi-document/reusable-parts#external-url
In asyncapi you can reference components, like messages from another file or web url. This would for example allow to create separate specification files for a let's say a ChatClient and ChatServer which share the same message types by referencing them from the components file. The operations could be different (send and receive parts). Maybe a separate derive like AsyncApiComponents to create the shared components file from rust code would be useful.
Link to the feature:
https://www.asyncapi.com/docs/concepts/asyncapi-document/reusable-parts#another-local-file
https://www.asyncapi.com/docs/concepts/asyncapi-document/reusable-parts#external-url