handleSwaggerVendorExtensions(element, object) {
    const extensions = _.chain(object)
      .pickBy(isExtension)
      .omit('x-description', 'x-summary', 'x-group-name')
      .value();

    if (Object.keys(extensions).length > 0) {
      const { Link, Extension } = this.namespace.elements;

      const profileLink = new Link();
      profileLink.relation = 'profile';
      profileLink.href = 'https://help.apiary.io/profiles/api-elements/vendor-extensions/';

      const extension = new Extension(extensions);
      extension.links = [profileLink];
      element.content.push(extension);
    }
  }
// Converts all unknown Swagger vendor extensions from an object into a API Element extension
Converts all unknown Swagger vendor extensions from an object into a API Element extension
Converts all unknown Swagger vendor extensions from an object into a API Element extension
handleSwaggerVendorExtensions(element, object) {
    const extensions = _.chain(object)
      .pickBy(isExtension)
      .omit('x-description', 'x-summary', 'x-group-name')
      .value();
    if (Object.keys(extensions).length > 0) {
      const { Link, Extension } = this.namespace.elements;
      const profileLink = new Link();
      profileLink.relation = 'profile';
      profileLink.href = 'https://help.apiary.io/profiles/api-elements/vendor-extensions/';
      const extension = new Extension(extensions);
      extension.links = [profileLink];
      element.content.push(extension);
    }
  }
handleSwaggerVendorExtensions ( element , object ) { const extensions = _ . chain ( object ) . pickBy ( isExtension ) . omit ( 'x-description' , 'x-summary' , 'x-group-name' ) . value ( ) ; if ( Object . keys ( extensions ) . length > 0 ) { const { Link , Extension } = this . namespace . elements ; const profileLink = new Link ( ) ; profileLink . relation = 'profile' ; profileLink . href = 'https://help.apiary.io/profiles/api-elements/vendor-extensions/' ; const extension = new Extension ( extensions ) ; extension . links = [ profileLink ] ; element . content . push ( extension ) ; } }
Converts all unknown Swagger vendor extensions from an object into a API Element extension
Converts all unknown Swagger vendor extensions from an object into a API Element extension