Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing support for xs:group type? #45

Open
mwysocki87 opened this issue Aug 18, 2022 · 0 comments
Open

Missing support for xs:group type? #45

mwysocki87 opened this issue Aug 18, 2022 · 0 comments

Comments

@mwysocki87
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant