npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@bentley/imodel-schema-validator

v1.0.4

Published

This tool validates an iModel's Schemas.

Readme

imodel-schema-validator

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 iModel. It downloads the briefcase of the given iModel and export all the schemas within it, then it performs validations against the exported schemas.

Getting Started

Prerequisites

  • Git
  • Node: an installation of the latest security patch of Node 14. The Node installation also includes the npm package manager.
  • TypeScript: this is listed as a devDependency, so if you're building it from source, you will get it with rush install.
  • Visual Studio Code: an optional dependency, but the repository structure is optimized for its use

Installation

Install globally:

npm install -g @bentley/imodel-schema-validator

Required Arguments

Following are the arguments required by this tool:

  • --verifyIModelSchemas: This argument confirms that the user first want to get the launchcodes.

  • -u, --userName: The username for connecting with HUB using OIDC Auth.

  • -p, --password: The password for connecting with HUB using OIDC Auth.

  • -r, --projectId: The id of a project on connect portal.

  • -i, --iModelName: The name of an imodel present in the project mentioned in projectid.

  • -e, --environment: The environment where imodel is present. This tool supports three enviroments: DEV, QA and PROD.

  • -b, --baseSchemaRefDir: Root directory of all released schemas (root of BisSchemas repo).

  • -o, --output: The path where output files will be generated.

  • -c, --checkReleaseDynamicSchema: Check all dynamic schemas within provided iModel. Default value is false.

  • -m, --imjs_uri: The default imjs url.

Sample Command

imodel-schema-validator --verifyIModelSchemas -u "[email protected]" -p "password" -r rewqkjhg-pocd-abcd-5874-254136987412 -i sample -e QA -b D:\\\\dir1\\\\BisSchemas -o D:\\\\dir2 -m "***.com"

Updating to newer version

Since the package is installed globally, updating has a different syntax than normal. To update the package globally, run:

npm update -g @bentley/imodel-schema-validator

How to build and test locally

  1. Clone bis-schema-validation repository (first time) or pull updates to the repository (subsequent times) with git pull.

  2. Open command prompt and navigate to the imodel-schema-validator directory e.g cd /d D:\bis-schema-validation\imodel-schema-validator

  3. Install rush

    npm install -g @microsoft/rush
  4. Install dependencies:

    rush install
  5. Build the project

    rush build
  6. Run Tests

    • Set following four environment variables before running the tests:
      • oidcUserName: The username for connecting with HUB.
      • oidcPassword: The password for connecting with HUB.
      • BisSchemaRepo: Root path of the bis-schemas repository.
      • ProjectId_QA: The project id for QA environment.
      • ProjectId_DEV: The project id for DEV environment.
      • ProjectId_PROD: The project id for PROD environment.
    • Run following command:
    npm run test