Skip to content

error during parsing #15

@hariseldon78

Description

@hariseldon78

the library fails to parse this xsd: https://www.agenziaentrate.gov.it/portale/documents/20143/3669651/Schema_VFPR12+%281%29.xsd/c25b2a7b-a3da-2a1f-c3ac-73d39921c7f5

this is the error reported:
node_modules/xsd2ts/regexp2aliasType.js:212
var orgLength_1 = options[options.length - 1].length;
^

TypeError: Cannot read property 'length' of undefined
at _loop_1 (node_modules/xsd2ts/regexp2aliasType.js:212:59)
at variants (node_modules/xsd2ts/regexp2aliasType.js:244:23)
at option (node_modules/xsd2ts/regexp2aliasType.js:263:14)
at expression (node_modules/xsd2ts/regexp2aliasType.js:362:14)
at Object.regexpPattern2typeAlias (node_modules/xsd2ts/regexp2aliasType.js:419:14)
at node_modules/xsd2ts/classGenerator.js:230:48
at Array.forEach ()
at ClassGenerator.generateClassFileDefinition (node_modules/xsd2ts/classGenerator.js:225:14)
at Object. (.../src/....js:17:30)
at Module._compile (internal/modules/cjs/loader.js:1085:14)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions