UNPKG

@asyncapi/generator

Version:

The AsyncAPI generator. It can generate documentation, code, anything!

42 lines (41 loc) 1.01 kB
{ "asyncapi": "2.0.0", "info": { "title": "This is Async API with a schema reference", "version": "0.0.1" }, "channels": { "VirtualTopic.crmservice": { "publish": { "message": { "oneOf": [ { "$ref": "#/components/messages/crm:Customer.Created" }, { "$ref": "#/components/messages/crm:Customer.Updated" } ] } } } }, "components": { "messages": { "crm:Customer.Created": { "summary": "A customer was created", "schemaFormat": "application/schema+json;version=draft-07", "payload": { "$ref": "https://schema.example.com/crm/shared.json" } }, "crm:Customer.Updated": { "summary": "A customer was created", "schemaFormat": "application/schema+json;version=draft-07", "payload": { "$ref": "https://schema.example.com/crm/shared.json" } } } } }