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

Flatten and generate code for parents of complex types. #63

Merged
merged 2 commits into from
Nov 24, 2017

Conversation

droyo
Copy link
Owner

@droyo droyo commented Nov 24, 2017

More often than not, a complex type is derived from another
complex type, and during the code gen process, it is simplified
to derive from anyType, and there are no additional types to pull
in.

This fixes issues with missing types for schema that meet the
following criteria:

  • There are complexTypes derived from simpleTypes (using simpleContent).
  • The simpleTypes are not used anywhere else.
  • The simpleTypes are simplified to builtin types because they are
    not interesting enough.

More often than not, a complex type is derived from another
complex type, and during the code gen process, it is simplified
to derive from anyType, and there are no additional types to pull
in.

This fixes issues with missing types for schema that meet the
following criteria:

* There are complexTypes derived from simpleTypes (using simpleContent).
* The simpleTypes are not used anywhere else.
* The simpleTypes are simplified to builtin types because they are
  not interesting enough.
@droyo droyo merged commit ea6920e into master Nov 24, 2017
@droyo droyo deleted the missing-complex-parents branch November 24, 2017 03:47
LudmilaSamalova pushed a commit to Deutsche-Boerse/go-xml that referenced this pull request Jan 2, 2020
Flatten and generate code for parents of complex types.
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

Successfully merging this pull request may close these issues.

1 participant