createHrefVariables(params) {
    const { HrefVariables } = this.namespace.elements;
    const hrefVariables = new HrefVariables();

    _.forEach(params, (parameter, index) => {
      this.withPath('parameters', index, () => {
        let member;
        const format = parameter.collectionFormat || 'csv';

        // Adding a warning if format is not supported
        if (!['multi', 'csv'].includes(format)) {
          this.createAnnotation(
            annotations.DATA_LOST, this.path,
            `Parameters of collection format '${format}' are not supported`
          );
        }

        if (parameter.in === 'query' || parameter.in === 'path') {
          member = this.convertParameterToMember(parameter);
          hrefVariables.content.push(member);
        }

        return member;
      });
    });

    return hrefVariables.length ? hrefVariables : undefined;
  }
// the new HrefVariables element or `undefined`.
the new HrefVariables element or `undefined`.
the new HrefVariables element or ` undefined ` .
createHrefVariables(params) {
    const { HrefVariables } = this.namespace.elements;
    const hrefVariables = new HrefVariables();
    _.forEach(params, (parameter, index) => {
      this.withPath('parameters', index, () => {
        let member;
        const format = parameter.collectionFormat || 'csv';
        if (!['multi', 'csv'].includes(format)) {
          this.createAnnotation(
            annotations.DATA_LOST, this.path,
            `Parameters of collection format '${format}' are not supported`
          );
        }
        if (parameter.in === 'query' || parameter.in === 'path') {
          member = this.convertParameterToMember(parameter);
          hrefVariables.content.push(member);
        }
        return member;
      });
    });
    return hrefVariables.length ? hrefVariables : undefined;
  }
createHrefVariables ( params ) { const { HrefVariables } = this . namespace . elements ; const hrefVariables = new HrefVariables ( ) ; _ . forEach ( params , ( parameter , index ) => { this . withPath ( 'parameters' , index , ( ) => { let member ; const format = parameter . collectionFormat || 'csv' ; if ( ! [ 'multi' , 'csv' ] . includes ( format ) ) { this . createAnnotation ( annotations . DATA_LOST , this . path , ` ${ format } ` ) ; } if ( parameter . in === 'query' || parameter . in === 'path' ) { member = this . convertParameterToMember ( parameter ) ; hrefVariables . content . push ( member ) ; } return member ; } ) ; } ) ; return hrefVariables . length ? hrefVariables : undefined ; }
the new HrefVariables element or `undefined`.
the new HrefVariables element or ` undefined ` .
// Adding a warning if format is not supported