serializeSync({ api, mediaType = 'text/vnd.apiblueprint' }) {
    const adapter = findAdapter(this.adapters, mediaType, 'serializeSync');

    if (!adapter) {
      throw new Error('Media type did not match any registered serializer!');
    }

    if (!api) {
      // eslint-disable-next-line no-param-reassign
      api = new this.minim.elements.Category();
    }

    return adapter.serializeSync({ api, namespace: this.minim, mediaType });
  }
/**
   * Synchronously serialize an API Description into the given output format.
   *
   * @param {Object} options
   * @param {Category} options.api
   * @param {string} [options.mediaType]
   */
Synchronously serialize an API Description into the given output format.
Synchronously serialize an API Description into the given output format .
serializeSync({ api, mediaType = 'text/vnd.apiblueprint' }) {
    const adapter = findAdapter(this.adapters, mediaType, 'serializeSync');
    if (!adapter) {
      throw new Error('Media type did not match any registered serializer!');
    }
    if (!api) {
      api = new this.minim.elements.Category();
    }
    return adapter.serializeSync({ api, namespace: this.minim, mediaType });
  }
serializeSync ( { api , mediaType = 'text/vnd.apiblueprint' } ) { const adapter = findAdapter ( this . adapters , mediaType , 'serializeSync' ) ; if ( ! adapter ) { throw new Error ( 'Media type did not match any registered serializer!' ) ; } if ( ! api ) { api = new this . minim . elements . Category ( ) ; } return adapter . serializeSync ( { api , namespace : this . minim , mediaType } ) ; }
Synchronously serialize an API Description into the given output format.
Synchronously serialize an API Description into the given output format .
// eslint-disable-next-line no-param-reassign