empty-client-name
@azure-tools/typespec-client-generator-core/empty-client-nameSeverity: warning
This diagnostic is issued when @clientName is given an empty or whitespace-only value.
Impact
Section titled “Impact”- Area: SDK naming customization. Generation continues, but the empty
@clientNameoverride is ignored and the default generated name is used. - Not affected: The target declaration’s TypeSpec name and wire representation are unchanged.
❌ Incorrect Usage
Section titled “❌ Incorrect Usage”@clientName(" ") // client name is empty/whitespacemodel Widget {}Diagnostic Message
Section titled “Diagnostic Message”TCGC reports:
Cannot pass an empty value to the @clientName decorator✅ How to Fix
Section titled “✅ How to Fix”Provide a non-empty name to @clientName or remove the decorator.
@clientName("WidgetClient")model Widget {}Suppression
Section titled “Suppression”This diagnostic should not be suppressed. Give @clientName a non-empty name, or remove the decorator.