You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Code generated by xgen. DO NOT EDIT.
// TopLevel ...
export class TopLevel {
TShirt: string;
}
// SizeType ...
export enum SizeType {
Small = 'Small',
Medium = 'Medium',
Large = 'Large',
}
So there is some interaction involving the top level element I think. Also, I think the order of the elements in the schema seems to have some effect too. There seem to be a lot of factors involved in reproducing this.
The text was updated successfully, but these errors were encountered:
Description
Sometimes, depending on the schema, enums are not generated correctly, or are not generated at all.
Steps to reproduce the issue:
Schema:
Command:
Describe the results you received:
Describe the results you expected:
Output of
go version
:xgen version or commit ID:
Environment details (OS, physical, etc.):
Other Information:
If I omit the HasNoElements enum from the schema, the generated code also omits the SizeType enum for some reason:
Also...
If I omit the
Style
element from the top level element, then it works fine:Output:
So there is some interaction involving the top level element I think. Also, I think the order of the elements in the schema seems to have some effect too. There seem to be a lot of factors involved in reproducing this.
The text was updated successfully, but these errors were encountered: