Skip to content

Fix simpleType length restriction #154

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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