generateArray(schema) {
    const { Array: ArrayElement } = this.minim.elements;
    const element = new ArrayElement();

    if (schema.items) {
      element.attributes.set('typeAttributes', ['fixedType']);

      if (_.isArray(schema.items)) {
        schema.items.forEach((item) => {
          const itemElement = this.generateElement(item);
          if (itemElement) {
            element.push(itemElement);
          }
        });
      } else {
        const itemElement = this.generateElement(schema.items);
        if (itemElement) {
          element.push(itemElement);
        }
      }
    }

    return element;
  }
// Generates an array element from the given array schema
Generates an array element from the given array schema
Generates an array element from the given array schema
generateArray(schema) {
    const { Array: ArrayElement } = this.minim.elements;
    const element = new ArrayElement();
    if (schema.items) {
      element.attributes.set('typeAttributes', ['fixedType']);
      if (_.isArray(schema.items)) {
        schema.items.forEach((item) => {
          const itemElement = this.generateElement(item);
          if (itemElement) {
            element.push(itemElement);
          }
        });
      } else {
        const itemElement = this.generateElement(schema.items);
        if (itemElement) {
          element.push(itemElement);
        }
      }
    }
    return element;
  }
generateArray ( schema ) { const { Array : ArrayElement } = this . minim . elements ; const element = new ArrayElement ( ) ; if ( schema . items ) { element . attributes . set ( 'typeAttributes' , [ 'fixedType' ] ) ; if ( _ . isArray ( schema . items ) ) { schema . items . forEach ( ( item ) => { const itemElement = this . generateElement ( item ) ; if ( itemElement ) { element . push ( itemElement ) ; } } ) ; } else { const itemElement = this . generateElement ( schema . items ) ; if ( itemElement ) { element . push ( itemElement ) ; } } } return element ; }
Generates an array element from the given array schema
Generates an array element from the given array schema