Skip to content

Fix simpleType length restriction #154

@tishkinaa

Description

@tishkinaa

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions