xgen icon indicating copy to clipboard operation
xgen copied to clipboard

XSD (XML Schema Definition) parser and Go/C/Java/Rust/TypeScript code generator

Results 34 xgen issues
Sort by recently updated
recently updated
newest added

**Description** Sometimes, depending on the schema, enums are not generated correctly, or are not generated at all. **Steps to reproduce the issue:** Schema: ``` ``` Command: ``` xgen -l TypeScript...

When parsing the "xsd:byte" tag, it parses byte. Byte is unsigned in go, so it should be int8 (signed instead). **Steps to reproduce the issue:** 1. Have an xsd with...

**Is your feature request related to a problem? Please describe.** Typescript generation come in very handy when zou try to deal with XML parsing within a typescript project. XML Parsing...

**Description** I am using xgen to generate code in go. The xsd extract is: and the code generated for that Type is: type AccountHolderType struct { XMLName xml.Name `xml:"AccountHolder_Type"` Individual...

**Description** When `element`'s type is embedded as a child `simpleType` and has a base restriction then the Go code contains self-referencing type definition that causes infinite loop in xml marshalling....

**Description** While generating Go XML objects with xgen, I have been noticing that omitempty is not being added to elements that have minOccurs='0' when those elements should be optional. I...

**Description** I am attempting to generate code based on some XSD files that utilize the "include" and "import" syntax. The problem is that I get the following error: ```process error...

bug

**Description** The xml tag for the top type is generated incorrectly, which makes i impossible to unmarshall in to the top structure. **Steps to reproduce the issue:** 1. Start with...

**Description** Types declared at the end of the XSD are not substituted into the generated code. XSD file: [XSD.txt](https://github.com/xuri/xgen/files/8087115/XSD.txt) Generated file: [Gotype.txt](https://github.com/xuri/xgen/files/8087114/Gotype.txt) **Describe the results you received:** ```text type CField...

**Description** When a complex type contains an xsd:group reference, the generated code produces a new struct type for the group rather than expanding the group content in the original type....