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

Fix simpleType length restriction #154

Open
tishkinaa opened this issue May 22, 2024 · 0 comments
Open

Fix simpleType length restriction #154

tishkinaa opened this issue May 22, 2024 · 0 comments

Comments

@tishkinaa
Copy link

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
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