Copyright © Bentley Systems, Incorporated. All rights reserved. See LICENSE.md for license terms and full copyright notice.
The purpose of this NPM CLI tool is to validate the schemas present within an application installer. It locates the schemas present in the extracted installer and perform the validations.
- Node: an installation of the latest security patch of Node 20. The Node installation also includes the npm package manager.
Install globally:
npm install -g @bentley/app-schema-validator
Following are the arguments required:
-
-i, --installerDir: Path to the extracted installer.
-
-b, --baseSchemaRefDir: Root directory of all released schemas (root of bis-schemas repo).
-
-o, --output: The path where output files will be generated.
For help use the '-h' option.
app-schema-validator -i D:\\\\dir1\\\\extracted\\app -b D:\\\\dir1\\\\bis-schemas -o D:\\\\dir1\\\\output
Since the package is installed globally, updating has a different syntax than normal. To update the package globally, run:
npm update -g @bentley/app-schema-validator