wsdl-tsclient icon indicating copy to clipboard operation
wsdl-tsclient copied to clipboard

Missing support for xs:group type?

Open mwysocki87 opened this issue 2 years ago • 0 comments

Hi! It looks to me like the generator does not support xs:group element type. For example, a definition like

<xs:element name="PrimaryInsured">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="EmailAddress" type="EmailAddress"/>
<xs:element minOccurs="0" name="EmploymentInformation" type="EmploymentInformation"/>
<xs:element minOccurs="0" name="MailingAddress" type="MailingAddress"/>
<xs:group ref="PersonNameAndDateOfBirth"/>
</xs:sequence>
</xs:complexType>

yields

/** PrimaryInsured */
export interface PrimaryInsured {
    /** g */
    0?: string;
    /** r */
    1?: string;
    /** o */
    2?: string;
    /** u */
    3?: string;
    /** p */
    4?: string;
    /** EmailAddress|xs:string|pattern,maxLength */
    EmailAddress?: string;
    /** InsuranceScore|xs:string|VeryPoor,Poor,Fair,Average,AboveAverage,Good,Excellent */
    InsuranceScore?: string;
    /** MailingAddress */
    MailingAddress?: MailingAddress;
    /** PreviousAddress */
    PreviousAddress?: MailingAddress;
}

Is this intentional? Are groups on the roadmap anytime soon?

Thanks

M.

mwysocki87 avatar Aug 18 '22 14:08 mwysocki87