What is UI5 Schemas?
UI5 Schemas allows you to develop SAPUI5/OpenUI5 XML at a maximum convenience. It downloads, upgrades and sets up SAPUI5/OpenUI5 XML schemas for a better development experience in your favorite IDE (if it is WebStorm ;).
$ npm install -g ui5-schemas
$ npx ui5-schemas
Use cli option
--help for more details
$ ui5-schemas --helpUsage: ui5-schemas [options]Options:--origin The src url or path to be used
Install schemas from any origin: Use the CDN, a downloaded SDK or even your own remote system.
Use the 'OpenUI5', 'OpenUI5 Nightly' or 'SAPUI5' SDK for your project.
Use any available OpenUI5/SAPUI5 version in your project. Switch versions with ease!
The xml schema files provided by SAP come with some limitations that this module does not fix (yet):
- Binding syntax is not supported
Usage behind Proxies
Proxies used according to npm module request. Make sure to have set the following env vars:
- HTTP_PROXY / http_proxy
- HTTPS_PROXY / https_proxy
- NO_PROXY / no_proxy
If you are behind a corporate proxy and experience 'UNABLE_TO_GET_ISSUER_CERT_LOCALLY' it is most probably due to an invalid proxy certificate. You can still run ui5-schemas like this at your own risk:
NODE_TLS_REJECT_UNAUTHORIZED=0 ui5-schemas# windowsset NODE_TLS_REJECT_UNAUTHORIZED=0ui5-schemas
If none of this works just download a SAPUI5/OpenUI5 SDK and install schemas from the filesystem:
$ ui5-schemas --origin '/Users/cschuff/Downloads/sapui5-sdk-1.65.1'
What is yet to come?
- Eclipse support
- Feel free to open an issue if you are missing something else!