src/exchanges.js
function(options) {
  this._entries = [];
  this._options = {
    durableExchanges:     true,
  };
  assert(options.serviceName, 'serviceName must be provided');
  assert(options.projectName, 'projectName must be provided');
  assert(options.version,     'version must be provided');
  assert(options.title,       'title must be provided');
  assert(options.description, 'description must be provided');
  assert(!options.exchangePrefix, 'exchangePrefix is not allowed');
  assert(!options.schemaPrefix, 'schemaPrefix is not allowed');
  this.configure(options);
}
function(options) {
  this._entries = [];
  this._options = {
    durableExchanges:     true,
  };
  assert(options.serviceName, 'serviceName must be provided');
  assert(options.projectName, 'projectName must be provided');
  assert(options.version,     'version must be provided');
  assert(options.title,       'title must be provided');
  assert(options.description, 'description must be provided');
  assert(!options.exchangePrefix, 'exchangePrefix is not allowed');
  assert(!options.schemaPrefix, 'schemaPrefix is not allowed');
  this.configure(options);
}
function ( options ) { this . _entries = [ ] ; this . _options = { durableExchanges : true , } ; assert ( options . serviceName , 'serviceName must be provided' ) ; assert ( options . projectName , 'projectName must be provided' ) ; assert ( options . version , 'version must be provided' ) ; assert ( options . title , 'title must be provided' ) ; assert ( options . description , 'description must be provided' ) ; assert ( ! options . exchangePrefix , 'exchangePrefix is not allowed' ) ; assert ( ! options . schemaPrefix , 'schemaPrefix is not allowed' ) ; this . configure ( options ) ; }
Create a collection of exchange declarations

options:
{
serviceName: 'foo',
version: 'v1',
title: "Title of documentation page",
description: "Description in markdown",
durableExchanges: true || false // If exchanges are durable (default true)
}
Create a collection of exchange declarations