Author Topic: Enums in XSD Transformation  (Read 1614 times)

Kyle W Melton

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Enums in XSD Transformation
« on: May 12, 2016, 02:35:39 am »
Hello All,

Is there a way to make attributes of enum types generate into XSD correctly after running an XSD transformation?

Example:  I have created an enum (enum1) with a couple of possible values.  I have created a class (class1) with an attribute (attribute1) of type enum1.  When I execute the Model Transformation with the type of XSD, and then execute the "Generate XSD" feature on that transformed package, I get the following warning: "Warning no XSD type found for: "enum1".  Default is: xs:string".  This results in the following content in the xsd: "<xs:element name="attribute1" type="xs:string" minOccurs="1" maxOccurs="1"/>".  If I execute the "Generate XSD" feature before running the transformation, then the XSD comes out right....  Any ideas??