go-xml icon indicating copy to clipboard operation
go-xml copied to clipboard

Fix simpleType length restriction

Open tishkinaa opened this issue 1 year ago • 0 comments

If simpleType has only length restriction then it will skipped when generating structs, because flatten1 method returns builtin type if simpleType has got empty doc field.

https://github.com/droyo/go-xml/blob/master/xsdgen/xsdgen.go#L466

https://github.com/droyo/go-xml/blob/master/xsdgen/xsdgen.go#L534

it's represents in broken ExamplePackageName https://github.com/droyo/go-xml/blob/master/xsdgen/example_test.go#L117

Screenshot 2024-05-22 at 12 15 25

tishkinaa avatar May 22 '24 09:05 tishkinaa