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

Enrich simple type detection #286

Closed
tefra opened this issue Oct 8, 2020 · 1 comment
Closed

Enrich simple type detection #286

tefra opened this issue Oct 8, 2020 · 1 comment

Comments

@tefra
Copy link
Owner

tefra commented Oct 8, 2020

Currently the class analyzer considers all not xs:element or xs:complexType as simple types. This excludes elements with anySimpleType and complex types with simple content.

<xs:schema>
  <xs:element name="x" type="xs:string"
@tefra tefra changed the title Flatten all simple types Enrich simple type detection Oct 8, 2020
@tefra
Copy link
Owner Author

tefra commented Oct 8, 2020

One assumption I want to try is that any class with a single text field is a simple type, for both attributes and class extensions

tefra added a commit to tefra/xsdata-w3c-tests that referenced this issue Oct 8, 2020
@tefra tefra closed this as completed in 4e1df15 Oct 8, 2020
tefra added a commit to tefra/xsdata-w3c-tests that referenced this issue Oct 8, 2020
tefra added a commit to tefra/xsdata-samples that referenced this issue Oct 8, 2020
tefra added a commit to tefra/xsdata-samples that referenced this issue Oct 8, 2020
tefra added a commit to tefra/xsdata-w3c-tests that referenced this issue Oct 8, 2020
tefra added a commit that referenced this issue Oct 9, 2020
tefra added a commit that referenced this issue Oct 9, 2020
tefra added a commit that referenced this issue Oct 9, 2020
tefra added a commit that referenced this issue Oct 9, 2020
tefra added a commit that referenced this issue Oct 9, 2020
tefra added a commit that referenced this issue Oct 9, 2020
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