Returns a message from EventCatalog by a given schema path.
@example
import utils from'@eventcatalog/utils'; const{ getMessageBySchemaPath }=utils('/path/to/eventcatalog'); // Get the message by the schema path const message =awaitgetMessageBySchemaPath('/path/to/eventcatalog/messages/InventoryAdjusted/schema.json'); const message =awaitgetMessageBySchemaPath('/path/to/eventcatalog/messages/InventoryAdjusted/schema.avro');
Returns a message from EventCatalog by a given schema path.