Closed BatmanAoD closed 3 years ago
It appears that elements in a sequence are always treated as arrays by the TypeScript code generator. For instance, the existing base64.xsd test translates this XSD type:
element
sequence
base64.xsd
<complexType name="myType4"> <sequence> <element name="title" type="string"/> <element name="blob" type="base64Binary"/> <element name="timestamp" type="dateTime"/> </sequence> </complexType>
...into this TypeScript type:
export class MyType4 { Title: Array<string>; Blob: Array<Array<any>>; Timestamp: Array<string>; }
I believe the correct type would be:
export class MyType4 { Title: string; Blob: Array<any>; Timestamp: string; // see issue #14 }
It appears that
element
s in asequence
are always treated as arrays by the TypeScript code generator. For instance, the existingbase64.xsd
test translates this XSD type:...into this TypeScript type:
I believe the correct type would be: