generateEnum(schema) {
    const { Enum: EnumElement } = this.minim.elements;

    const element = new EnumElement();

    element.enumerations = schema.enum;

    // eslint-disable-next-line no-restricted-syntax
    for (const enumeration of element.enumerations) {
      enumeration.attributes.set('typeAttributes', ['fixed']);
    }

    return element;
  }
// Generates an enum element for the given enum schema
Generates an enum element for the given enum schema
Generates an enum element for the given enum schema
generateEnum(schema) {
    const { Enum: EnumElement } = this.minim.elements;
    const element = new EnumElement();
    element.enumerations = schema.enum;
    for (const enumeration of element.enumerations) {
      enumeration.attributes.set('typeAttributes', ['fixed']);
    }
    return element;
  }
generateEnum ( schema ) { const { Enum : EnumElement } = this . minim . elements ; const element = new EnumElement ( ) ; element . enumerations = schema . enum ; for ( const enumeration of element . enumerations ) { enumeration . attributes . set ( 'typeAttributes' , [ 'fixed' ] ) ; } return element ; }
Generates an enum element for the given enum schema
Generates an enum element for the given enum schema
// eslint-disable-next-line no-restricted-syntax