API Reference > ecschema-editing > 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 ecschema-editing/src/Validation/SchemaValidater.ts Line 45 Last Updated: 12 June, 2024