Export to XSD from the Export dialog and the CLI
The Export dialog's XSD card writes the item's data types as a standalone XML Schema and shows
its three options: Xsd Version, Include Xml Declaration and Include Comments. The CLI
exports the same with apiome export xsd. Where to find it.
- XSD 1.0 or 1.1. Xsd Version is
1.0by default;1.1marks the schemavc:minVersion="1.1"and writesmultipleOfas an assertion. From the CLI, add--option xsd_version=1.1. - Your XSD exports losslessly. An item imported from XSD badges lossless. Any other source is types-only: XSD keeps its types and leaves out its operations.
- One file per namespace. A one-namespace item downloads as its
.xsd; an item that spans several namespaces downloads as a.zipof schemas that import each other.
