API Reference > ecschema-metadata > Diagnostic > SchemaDiagnostic > constructor constructor Method Initializes a new SchemaDiagnostic. SchemaDiagnostic<ARGS extends any[]>(schema: Schema, messageArgs: ARGS, category: DiagnosticCategory = DiagnosticCategory.Error): SchemaDiagnostic<ARGS> Parameter Type Description schema Schema messageArgs ARGS The arguments used when formatting the diagnostic message. category DiagnosticCategory The DiagnosticCategory to associate with the diagnostic, Error by default. Returns - SchemaDiagnostic<ARGS> Defined in core/ecschema-metadata/src/Validation/Diagnostic.ts Line 131 Last Updated: 11 June, 2024