Skip to main content

getProducersOfSchema

Callable

  • getProducersOfSchema(directory: string): (path: string) => Promise<Service[]>

  • Returns the producers of a given schema path.

    @example
    import utils from '@eventcatalog/utils';

    const { getProducersOfSchema } = utils('/path/to/eventcatalog');

    // Returns the producers of a given schema path
    const producers = await getProducersOfSchema('events/InventoryAdjusted/schema.json');