API Reference > ecschema-metadata > Validation > SchemaValidater > validateSchema validateSchema MethodStatic Validates a schema against the ECRuleSet. validateSchema(schema: Schema, validaterRuleSet?: IRuleSet): Promise<AnyDiagnostic[]> Parameter Type Description schema Schema The schema to validate. validaterRuleSet IRuleSet Optional IRuleSet to be applied to the schema in addition to the default EC rules. Returns - Promise<AnyDiagnostic[]> Defined in core/ecschema-metadata/src/Validation/SchemaValidater.ts Line 49 Last Updated: 12 June, 2024