API Reference > ecschema-metadata > Diagnostic > IDiagnostic > code code code: string The unique string identifier of the diagnostic in the format ':. Value is static across all instances. Defined in core/ecschema-metadata/src/Validation/Diagnostic.ts Line 62 Last Updated: 12 June, 2024