How ui5experts/ui5-schemas works
UI5 Schemas is a Node.js CLI that prepares SAPUI5/OpenUI5 XML schemas for IDE use. Its principal workflow parses CLI options, resolves SDK/version information, downloads the library registry and schema files, then optionally enhances the core schema and registers schemas with a WebStorm project. The README also documents custom URL or local origins and SAPUI5, OpenUI5, and OpenUI5 Nightly selection. Edges reflect calls and data handling visible in excerpts or README; the implementation of any unshown IDE integrations is not inferred.
Main entry points: main.js Workflow Coordinator · link.js IDE Schema Linker · Options.js Options and Version · index.js Command Entry
Components 13
CLI and Configuration
- Command Entry
bin/index.js - Options and Version
lib/Options.js - App Data Paths
lib/Util.js
Schema Acquisition
- Workflow Coordinator
lib/main.js - UI5 SDK Origin
- Schema Downloader
lib/download.js - Downloaded Schemas
Schema Enhancement
- Schema Enhancer
lib/upgrade.js - Enhanced Core Schema
IDE Setup
- IDE Schema Linker
lib/link.js - WebStorm Project
- IDE Registry Template
templates/misc.xml
Other components
- CLI User
Connections 15
- CLI User → Command Entry: runs
README.md - Command Entry → Options and Version: creates
bin/index.js - Command Entry → Workflow Coordinator: starts
bin/index.js - Workflow Coordinator → Options and Version: initializes
lib/main.js - Options and Version → App Data Paths: gets app path
lib/Options.js - Options and Version → UI5 SDK Origin: loads version
lib/Options.js - Schema Downloader → UI5 SDK Origin: requests metadata and schemas
lib/download.js - Workflow Coordinator → Schema Downloader: downloads registry and schemas
lib/main.js - Schema Downloader → Downloaded Schemas: writes schemas
lib/download.js - Workflow Coordinator → Schema Enhancer: invokes when enabled
lib/main.js - Schema Enhancer → Enhanced Core Schema: reads and rewrites
lib/upgrade.js - Workflow Coordinator → IDE Schema Linker: invokes when enabled
lib/main.js - IDE Schema Linker → Downloaded Schemas: registers locations
lib/link.js - IDE Schema Linker → WebStorm Project: updates registry
lib/link.js - IDE Schema Linker → IDE Registry Template: copies if missing
lib/link.js