Skip to content
This repository was archived by the owner on Jan 7, 2023. It is now read-only.
This repository was archived by the owner on Jan 7, 2023. It is now read-only.

Simple Types with Enumeration Aren't Created #92

@Garethp

Description

@Garethp

So, I'm using your library and overriding it a bit to customize my output, but I've noticed that it doesn't create simpleTypes, which is rather frustrating. For example, I'm using it on the Microsoft EWS xsd and wsdl files, and they have this definition

  <xs:simpleType name="DateTimePrecisionType">
    <xs:annotation>
      <xs:documentation>Precision for returned DateTime values</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:enumeration value="Seconds" />
      <xs:enumeration value="Milliseconds" />
    </xs:restriction>
  </xs:simpleType>

  <xs:element name="DateTimePrecision" type="t:DateTimePrecisionType" />

And with this, the DateTimePrecision class will be created, it'll set to extend from DateTimePrecisionType, but DateTimePrecisionType will never exist, which causes an error

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions