apiKeyName(element, apiKey) {
    const { Member: MemberElement } = this.namespace.elements;
    let config;

    if (apiKey.in === 'query') {
      config = 'queryParameterName';
    } else if (apiKey.in === 'header') {
      config = 'httpHeaderName';
    }

    const member = new MemberElement(config, apiKey.name);

    if (this.generateSourceMap) {
      this.createSourceMap(member, this.path.concat(['name']));
    }

    element.content.push(member);
  }
// Conver api key name into Refract elements
Conver api key name into Refract elements
Conver api key name into Refract elements
apiKeyName(element, apiKey) {
    const { Member: MemberElement } = this.namespace.elements;
    let config;
    if (apiKey.in === 'query') {
      config = 'queryParameterName';
    } else if (apiKey.in === 'header') {
      config = 'httpHeaderName';
    }
    const member = new MemberElement(config, apiKey.name);
    if (this.generateSourceMap) {
      this.createSourceMap(member, this.path.concat(['name']));
    }
    element.content.push(member);
  }
apiKeyName ( element , apiKey ) { const { Member : MemberElement } = this . namespace . elements ; let config ; if ( apiKey . in === 'query' ) { config = 'queryParameterName' ; } else if ( apiKey . in === 'header' ) { config = 'httpHeaderName' ; } const member = new MemberElement ( config , apiKey . name ) ; if ( this . generateSourceMap ) { this . createSourceMap ( member , this . path . concat ( [ 'name' ] ) ) ; } element . content . push ( member ) ; }
Conver api key name into Refract elements
Conver api key name into Refract elements