XSD export writes facets, choices and XSD 1.1
Exporting an item to XSD now writes the same XML Schema a WSDL export writes for its types, as a standalone schema, in XSD 1.0 or 1.1. How the XSD is written.
- Rules as facets.
pattern,minLength/maxLengthandminimum/maximumbecome XSD facets, so a validator enforces them. - Unions, nullability and lists. A
oneOfbecomes anxs:choice, a nullable fieldnillable="true" minOccurs="0", and a listmaxOccurs="unbounded". - XSD 1.1. Set xsd_version to
1.1to writemultipleOfas an assertion facet. - Several namespaces. An item whose types live in different namespaces downloads as a
.zipwith one schema per namespace, joined byxs:import. - XSD items round-trip. An item imported from XSD keeps its elements, attributes and enumeration values.
