API Reference > imodeljs-backend > iModels > IModelDb > validateSchemas validateSchemas MethodStatic Determines if the schemas in the Db must or can be upgraded by comparing them with those included in the current version of the software. validateSchemas(filePath: string, forReadWrite: boolean): SchemaState throws IModelError If the Db was in an invalid state and that causes a problem with validating schemas see BriefcaseDb.upgradeSchemas or StandaloneDb.upgradeSchemas see ($docs/learning/backend/IModelDb.md#upgrading-schemas-in-an-imodel) Parameter Type Description filePath string Full name of the briefcase including path forReadWrite boolean Pass true if validating for read-write scenarios - note that the schema version requirementsfor opening the DgnDb read-write is more stringent than when opening the database read-only Returns - SchemaState Defined in core/backend/src/IModelDb.ts Line 895 Last Updated: 11 June, 2024